Quick actions

cmd+k|ctrl+k

Navigation

Languages

parallel-programming.p6

Snippet info

Language

Raku

Visibility

public

Author

zostay

Created

2016-08-29T16:31:41Z

Updated

2016-08-29T16:31:41Z

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