Skip to content

Instantly share code, notes, and snippets.

@afrieirham
Created January 26, 2019 09:36
Show Gist options
  • Save afrieirham/4dd9c2c1bf2aafbd14357cf84bf42368 to your computer and use it in GitHub Desktop.
Save afrieirham/4dd9c2c1bf2aafbd14357cf84bf42368 to your computer and use it in GitHub Desktop.
Solution for Project Euler #7
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