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