Created
January 26, 2019 09:36
-
-
Save afrieirham/4dd9c2c1bf2aafbd14357cf84bf42368 to your computer and use it in GitHub Desktop.
Solution for Project Euler #7
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
def problem7(): | |
i=2 | |
count = 0 | |
while(True): | |
if(isPrime(i)): | |
count += 1 | |
if(count==10001): | |
print(i) | |
break | |
i += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment