Std.Math.isPrime
1 declaration
fn
isPrime: T -> Bool where T: Ord + Zero + One + Add + Mul + RemThis is a callable function.
What it does
Whether a value is prime. Values below two are not.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
