println((2L to 2000000L).filter(BigInt(_).isProbablePrime(1000)).sum)