Find the 2014th prime number.
Example: The 2nd prime number is 3 and the 3rd prime number is 5.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Java code :
For checking whether a number is prime I have created a method isprime whose code is as follows.