Project Euler : Problem 7 - 10001st prime

less than 1 minute read

Problem Statement : 10001st prime

Problem 7 : By listing the first six prime numbers: , we can see that the prime is .What is the prime number?

Concept and Theory

I will leave this to the viewer because I have already covered Prime Numbers concept in, (Calculate Primes), post.

Test Your Skills

Wanna try a harder version of the above problem ? Check this HackerRank problem.

Solution

The solution will remain same as given in the above mentioned post, , you just need to call it for each test case.

References and Further Readings

Leave a Comment

Your email address will not be published. Required fields are marked *

Loading...