metaprogram primality test using constexpr