Solution to Prime Numbers of Codeeval
https://www.codeeval.com/open_challenges/46/