aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-150/ash/raku/ch-1.raku11
1 files changed, 11 insertions, 0 deletions
diff --git a/challenge-150/ash/raku/ch-1.raku b/challenge-150/ash/raku/ch-1.raku
new file mode 100644
index 0000000000..07e83215d9
--- /dev/null
+++ b/challenge-150/ash/raku/ch-1.raku
@@ -0,0 +1,11 @@
+my $a = '1234';
+my $b = '5678';
+
+my $L = 51;
+
+my @fib = $a, $b, * ~ * ... *;
+
+my $long = @fib.first: *.chars >= $L;
+my $char = $long.comb[$L-1];
+
+say "The {$L}st digit in the first term having at least $L digits '$long' is $char.";