aboutsummaryrefslogtreecommitdiff
path: root/challenge-149/abigail/bash
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.freedom.nl>2022-01-27 20:01:25 +0100
committerAbigail <abigail@abigail.freedom.nl>2022-01-27 20:01:25 +0100
commit6fbb0c972e74ce8ccc75165e21f6cf2df77e1963 (patch)
tree57e684736fb1c00d337a453472f7aa928656ef1b /challenge-149/abigail/bash
parent1182279c150eb5c4c55a25092afc5cb9f54d16cb (diff)
downloadperlweeklychallenge-club-6fbb0c972e74ce8ccc75165e21f6cf2df77e1963.tar.gz
perlweeklychallenge-club-6fbb0c972e74ce8ccc75165e21f6cf2df77e1963.tar.bz2
perlweeklychallenge-club-6fbb0c972e74ce8ccc75165e21f6cf2df77e1963.zip
Week 149, part 2: Spend a ton of CPU cycles to find more values.
Running the Python program from the OEIS to find values for 23, 24, and 25.
Diffstat (limited to 'challenge-149/abigail/bash')
-rw-r--r--challenge-149/abigail/bash/ch-2.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/challenge-149/abigail/bash/ch-2.sh b/challenge-149/abigail/bash/ch-2.sh
index ba798b6707..31b5ef156a 100644
--- a/challenge-149/abigail/bash/ch-2.sh
+++ b/challenge-149/abigail/bash/ch-2.sh
@@ -12,6 +12,9 @@ set -f
declare -a A287298
+
+declare -a A287298
+
A287298[2]=1
A287298[3]=1
A287298[4]=3201
@@ -32,6 +35,9 @@ A287298[18]=HGF80ADC53712EB649
A287298[19]=IHGFD3408C6E715A2B9
A287298[20]=JIHG03DAC457BFE96281
A287298[22]=LKJIG5D14B9032FHAC867E
+A287298[23]=MLKJEFG5IC1D9H8042AB376
+A287298[24]=NMLKJ2BD0639GFE7C8IH5A41
+A287298[25]=ONMLKD8CJE2H47F6395I0B1AG
while read n
do echo ${A287298[$n]:-"Too hard to calculate"}