@@ -14,7 +14,7 @@ or check whether a number is prime in a const function.
14
14
15
15
` no_std ` compatible when the ` serde ` feature is disabled.
16
16
17
- This version of the crate supports Rust versions 1.81.0 and up,
17
+ This version of the crate supports Rust versions 1.81.0 and up,
18
18
while versions 0.8.7 and older support Rust versions 1.67.1 and up.
19
19
20
20
## Example: generate primes at compile time and use them for related computations
@@ -61,11 +61,13 @@ assert!(CHECK);
61
61
62
62
## Example: generate the three primes after 5000000031
63
63
64
- The crate also provides prime generation and sieving functionality for computing arrays of
65
- large prime numbers above or below some limit, without having to also include every single prime number from 2 and up in the
66
- resulting constant, and thus potentially the binary.
67
- This functionality is most conveniently accessed through the macros ` primes_segment! ` and
68
- ` sieve_segment! ` that automatically compute the size of the prime sieve that is needed for a certain computation.
64
+ The crate also provides prime generation and sieving functionality for computing
65
+ arrays of large prime numbers above or below some limit, without having to also
66
+ include every single prime number from 2 and up in the resulting constant,
67
+ and thus potentially the binary.
68
+ This functionality is most conveniently accessed through the macros ` primes_segment! `
69
+ and ` sieve_segment! ` that automatically compute the size of the prime sieve that
70
+ is needed for a certain computation.
69
71
70
72
Compute 3 primes greater than or equal to 5000000031:
71
73
0 commit comments