hackercup, round 1, D bug fixes - one off-by-one error and too little primes