A wee bit faster
Problem 4 done. Piece of cake.
Problem 5 solved—also easy :)
6 Down
7
8
Attempt at 9—slow.
9 optimized. Also had a bug; fixed it. Solved
Solution for 10 (could be faster) + bugfix in primes.