Prime number library
Problem 10 (naive implementation, not valid)