Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. 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