problem 10, coffeescript -- use prime sieve, it's fast now