Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $a=197; my $b=1259; my $c=2017; my &test = -> $m { ($a * $m)%$c == $b }; my $seq := gather { while 1 { state $prev=0; $prev++ until test($prev); take $prev++; }; }; say $seq;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement