Add solution to problem #10

Added a bad solution to problem #10, I keep using the seive.... Which requires to generate more primes than the problem needs ahead of time efficiently...