aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-142/luca-ferrari/raku/ch-1.p66
1 files changed, 6 insertions, 0 deletions
diff --git a/challenge-142/luca-ferrari/raku/ch-1.p6 b/challenge-142/luca-ferrari/raku/ch-1.p6
new file mode 100644
index 0000000000..a2315aba80
--- /dev/null
+++ b/challenge-142/luca-ferrari/raku/ch-1.p6
@@ -0,0 +1,6 @@
+#!raku
+
+sub MAIN( Int $m where { $m > 1 }
+ , Int $n where { $n > 0 && $m > $n } ) {
+ ( 1 .. $m ).grep( $m %% * ).grep( * ~~ / ^ \d* $n $ / ).elems.say;
+}