HackerRank::Contests::ProjectEuler::Project Euler #7: 10001st prime
The 10001st prime number is not a big one, so jsut using a sieve of Eratosthenes for to find the prime numbers up to 5000000 is more than enough. For reading more info about the sieve of Eratosthenes go here.
No comments:
Post a Comment