Primes.int is in 32bit format. So typedef Prime must be uint32_t.