aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchallenge-146/luca-ferrari/raku/ch-1.p66
1 files changed, 6 insertions, 0 deletions
diff --git a/challenge-146/luca-ferrari/raku/ch-1.p6 b/challenge-146/luca-ferrari/raku/ch-1.p6
new file mode 100755
index 0000000000..2b9b4de3d3
--- /dev/null
+++ b/challenge-146/luca-ferrari/raku/ch-1.p6
@@ -0,0 +1,6 @@
+#!raku
+
+sub MAIN( Int $which where { $which > 0 } = 1001 ) {
+ my @primes = lazy { ( 1 .. Inf ).grep( *.is-prime ); }
+ @primes[ $which ].say;
+}