Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 284 Bytes
"""
Problem 7. 10001st prime.
http://static.projecteuler.net/problem=7
"""
import misc
def main():
counter = 1
num = 1
while counter < 10001:
num += 2
if misc.is_prime(num):
counter += 1
print(num)
if __name__ == '__main__':
main()