Quick actions

cmd+k|ctrl+k

Navigation

Languages

serial-programming.p6

Snippet info

Language

Raku

Visibility

public

Author

zostay

Created

2016-08-29T16:31:43Z

Updated

2016-08-29T16:31:43Z

my @nths = 4000 + (1 .. 4);
my @primes = gather for @nths -> $n {
    take (1 .. *).grep(*.is-prime)[$n];
}
.say for @primes;
INFO