Brute force prime number generator.