From f8c1bed0ca63ca4524d73f3264c1b9b1228609f3 Mon Sep 17 00:00:00 2001 From: Scimon Date: Mon, 16 Aug 2021 09:17:55 +0100 Subject: Challenge 1 --- challenge-126/simon-proctor/raku/ch-1.raku | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 challenge-126/simon-proctor/raku/ch-1.raku diff --git a/challenge-126/simon-proctor/raku/ch-1.raku b/challenge-126/simon-proctor/raku/ch-1.raku new file mode 100644 index 0000000000..479ed8e30d --- /dev/null +++ b/challenge-126/simon-proctor/raku/ch-1.raku @@ -0,0 +1,6 @@ +#!/usr/bin/env raku + +#| Given a number N give the count of all numbers between 1 and N inclusive that don't have a 1 in them +sub MAIN ( UInt \N ) { + (1^..N).grep( { ! m/1/ } ).elems.say; +} -- cgit