aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Smith <js5@sanger.ac.uk>2021-11-04 17:11:27 +0000
committerGitHub <noreply@github.com>2021-11-04 17:11:27 +0000
commit889275a8b4b02ddd5e0b3c23cdaaa4c9811a84e2 (patch)
treea21a9e750480cd7a31fea2269376dcd0215087a7
parent51dca5ac55f79545b8e04d9a7298e7cbacaa9872 (diff)
downloadperlweeklychallenge-club-889275a8b4b02ddd5e0b3c23cdaaa4c9811a84e2.tar.gz
perlweeklychallenge-club-889275a8b4b02ddd5e0b3c23cdaaa4c9811a84e2.tar.bz2
perlweeklychallenge-club-889275a8b4b02ddd5e0b3c23cdaaa4c9811a84e2.zip
Update README.md
-rw-r--r--challenge-137/james-smith/README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/challenge-137/james-smith/README.md b/challenge-137/james-smith/README.md
index b32381ed19..a70002eab8 100644
--- a/challenge-137/james-smith/README.md
+++ b/challenge-137/james-smith/README.md
@@ -164,7 +164,13 @@ say $_ foreach sort { $a <=> $b } keys %lychrel;
Using this script to generate all candidate Lychrel numbers up to 1 million took approximately `12` seconds. To use the `lychrel_large` routine took approximately 2180 seconds (36 minutes 20 seconds), a speed gain of approximately `180x`.
-To 10 million the time taken was approximately 6 minutes.
+To 10 million the time taken was approximately 1 min 40s; 20 million ~ 3 min 50s; 30 million ~ 31 min 40s {I think the time for this got large as the machine was starting to hit SWAP storage}. The code fails shortly after this as memory and swap was exhausted ~ 12GB.
+
+| N | Lycrhel < N | Time taken |
+| ---------: | ----------: | ---------: |
+| 10,000,000 | 2,010,871 | 1 min 40s |
+| 20,000,000 | 4,521,930 | 3 min 50s |
+| 30,000,000 | 7,177,742 | 31 min 40s |
### Explanation