machine_prime

Function is_prime_wc

Source
#[no_mangle]
pub const extern "C" fn is_prime_wc(x: u64) -> bool
Expand description

Primality testing for the worst case.

Panics at zero, flags 1 as prime, 2 as composite.

§SSMR

May pass some even numbers as prime

§Lucas

“Erroneously” returns true for the perfect squares 1194649 (1093^2) and 12327121 (3511^2). This is due to slightly faster parameter selection

§Tiny

Infinitely loops at the perfect squares 1194649 and 12327121.

§Wide

No additional known errors