By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 10001st prime number?
Primes are always in the center of programming.
Not much to say for this one, just brute-force with optimized prime check solution from Problem 3:
and generate the candidate of next prime with odd numbers only.
[GitHub Link] [Official overview pdf by projecteuler.net]
Not much to say for this one, just brute-force with optimized prime check solution from Problem 3:
and generate the candidate of next prime with odd numbers only.
[GitHub Link] [Official overview pdf by projecteuler.net]