primes.cs solution