Created
July 4, 2016 19:09
-
-
Save cycjusz157/121d8b7fed06ab52e3a40f21d4a76d60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ProjectLevelVcsManager" settingsEditedManually="false"> | |
<OptionsSetting value="true" id="Add" /> | |
<OptionsSetting value="true" id="Remove" /> | |
<OptionsSetting value="true" id="Checkout" /> | |
<OptionsSetting value="true" id="Update" /> | |
<OptionsSetting value="true" id="Status" /> | |
<OptionsSetting value="true" id="Edit" /> | |
<ConfirmationsSetting value="0" id="Add" /> | |
<ConfirmationsSetting value="0" id="Remove" /> | |
</component> | |
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.5.1 (C:\Users\krystian.szczygielsk\AppData\Local\Continuum\Anaconda3\python.exe)" project-jdk-type="Python SDK" /> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ProjectModuleManager"> | |
<modules> | |
<module fileurl="file://$PROJECT_DIR$/.idea/Project Euler.iml" filepath="$PROJECT_DIR$/.idea/Project Euler.iml" /> | |
</modules> | |
</component> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
<component name="TestRunnerService"> | |
<option name="projectConfiguration" value="Nosetests" /> | |
<option name="PROJECT_TEST_RUNNER" value="Nosetests" /> | |
</component> | |
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
end = 4000000 | |
sum = 0 | |
fib1 = 1 | |
fib2 = 2 | |
while sum < end: | |
tmp = fib1 | |
fib1 = fib2 | |
fib2 = fib1 + tmp | |
sum += fib2 | |
print(sum - fib1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beg = 999 | |
end = 100 | |
product = 0 | |
maxpal = 0 | |
for num in range(beg, end, -1): | |
for num2 in range(beg, end, -1): | |
product = num * num2 | |
if(str(product) == str(product)[::-1]): | |
maxpal = max(maxpal, product) | |
print(maxpal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number = 600851475143 | |
factor = 2 | |
maxFactor = factor | |
while number != 1: | |
if (number%factor == 0): | |
number = number / factor | |
if (factor > maxFactor): | |
maxFactor = factor | |
factor = 2 | |
else: | |
factor = factor + 1 | |
print(maxFactor) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sum = 0 | |
begin = 0 | |
end = 1000 | |
for num in range(begin, end): | |
if(num%3 == 0 or num%5 == 0): | |
sum = sum + num | |
print(sum) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment