It's a common requirement in programming challenges - such as Project Euler - to determine if a number is a prime number. Recently I was tasked with finding a nice method of finding the nth prime number.
Skip to my proposed solution, or the PHP implementation.
The obvious solution here is to iterate through the whole number Read More →