Anti-primes: Difference between revisions

Content added Content deleted
m (→‎{{header|Perl 6}}: use atomic ops to try to avoid concurrency issues.)
Line 734: Line 734:
my \mx = +propdiv($c);
my \mx = +propdiv($c);
next if mx <= $last;
next if mx <= $last;
$last = mx;
atomic-assign: $last, mx;
$c
$c
}
}