diff options
| -rw-r--r-- | challenge-126/simon-proctor/raku/ch-1.raku | 6 |
1 files changed, 6 insertions, 0 deletions
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; +} |
