ctprimes

This module provides arrays of prime numbers that are available at compile-time. Arrays are calculated as long as you need, using CTFE.

Members

Templates

ctPrimes
template ctPrimes(size_t length, T = size_t)

Construct an array of prime number using CTFE. The length of the array is length, and the type is T[length].

ctPrimesLessThan
template ctPrimesLessThan(alias N)

Construct an array of all prime numbers less than N, using CTFE. The type of the array is typeof(N)[].

Meta