Modular arithmetic
We'll use the FiniteFields repo.
use FiniteField;
$*modulus = 13;
sub f(\x) { x**100 + x + 1};
say f(10);
Output:
1
Last updated
Was this helpful?
We'll use the FiniteFields repo.
use FiniteField;
$*modulus = 13;
sub f(\x) { x**100 + x + 1};
say f(10);
1
Last updated
Was this helpful?