Quick actions

cmd+k|ctrl+k

Navigation

Languages

Parallel Programming

Snippet info

Language

Raku

Visibility

public

Author

zostay

Created

2016-07-09T13:29:23Z

Updated

2016-07-09T13:29:23Z

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