From 6f0deb16317447552ef89fdcddbbe2521bb45650 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 19 Jun 2022 17:47:02 +0100 Subject: Update README.md --- challenge-169/james-smith/README.md | 107 ++++++++++++++++++------------------ 1 file changed, 53 insertions(+), 54 deletions(-) diff --git a/challenge-169/james-smith/README.md b/challenge-169/james-smith/README.md index 94df976f68..97043ad0bf 100644 --- a/challenge-169/james-smith/README.md +++ b/challenge-169/james-smith/README.md @@ -44,61 +44,60 @@ The output in each row is the brilliant number and the two primes which are it's **Moan:** Why is there no `sayf` function similar to `printf` - using `say sprintf` is just "messy" each time... -| Index | Value | Factors | -| -----------: | -------------------: | ------------------------------------------------------------ | -| 1 | 72 | 23.32 | -| 2 | 108 | 22.33 | -| 3 | 200 | 23.52 | -| 4 | 288 | 25.32 | -| 5 | 392 | 23.72 | -| 6 | 432 | 24.33 | -| 7 | 500 | 22.53 | -| 8 | 648 | 23.34 | -| 9 | 675 | 33.52 | -| 10 | 800 | 25.52 | -| 11 | 864 | 25.33 | -| 12 | 968 | 23.112 | -| 13 | 972 | 22.35 | -| 14 | 1,125 | 32.53 | -| 15 | 1,152 | 27.32 | -| 16 | 1,323 | 33.72 | -| 17 | 1,352 | 23.132 | -| 18 | 1,372 | 22.73 | -| 19 | 1,568 | 25.72 | -| 20 | 1,800 | 23.32.52 | -| 21 | 1,944 | 23.35 | -| 22 | 2,000 | 24.53 | -| 23 | 2,312 | 23.172 | -| 24 | 2,592 | 25.34 | -| 25 | 2,700 | 22.33.52 | -| 26 | 2,888 | 23.192 | -| 27 | 3,087 | 32.73 | -| 28 | 3,200 | 27.52 | -| 29 | 3,267 | 33.112 | -| 30 | 3,456 | 27.33 | -| 31 | 3,528 | 23.32.72 | -| 32 | 3,872 | 25.112 | -| 33 | 3,888 | 24.35 | -| 34 | 4,000 | 25.53 | -| 35 | 4,232 | 23.232 | -| 36 | 4,500 | 22.32.53 | -| 37 | 4,563 | 33.132 | -| 38 | 4,608 | 29.32 | -| 39 | 5,000 | 23.54 | -| 40 | 5,292 | 22.33.72 | -| 41 | 5,324 | 22.113 | -| 42 | 5,400 | 23.33.52 | -| 43 | 5,408 | 25.132 | -| 44 | 5,488 | 24.73 | -| 45 | 6,075 | 35.52 | -| 46 | 6,125 | 53.72 | -| 47 | 6,272 | 27.72 | -| 48 | 6,728 | 23.292 | -| 49 | 6,912 | 28.33 | -| 50 | 7,200 | 25.32.52 | - - +The first 50 brilliant numbers are: +``` + 1: 4 = 2 x 2 + 2: 6 = 2 x 3 + 3: 9 = 3 x 3 + 4: 10 = 2 x 5 + 5: 14 = 2 x 7 + 6: 15 = 3 x 5 + 7: 21 = 3 x 7 + 8: 25 = 5 x 5 + 9: 35 = 5 x 7 + 10: 49 = 7 x 7 + 11: 121 = 11 x 11 + 12: 143 = 11 x 13 + 13: 169 = 13 x 13 + 14: 187 = 11 x 17 + 15: 209 = 11 x 19 + 16: 221 = 13 x 17 + 17: 247 = 13 x 19 + 18: 253 = 11 x 23 + 19: 289 = 17 x 17 + 20: 299 = 13 x 23 + 21: 319 = 11 x 29 + 22: 323 = 17 x 19 + 23: 341 = 11 x 31 + 24: 361 = 19 x 19 + 25: 377 = 13 x 29 + 26: 391 = 17 x 23 + 27: 403 = 13 x 31 + 28: 407 = 11 x 37 + 29: 437 = 19 x 23 + 30: 451 = 11 x 41 + 31: 473 = 11 x 43 + 32: 481 = 13 x 37 + 33: 493 = 17 x 29 + 34: 517 = 11 x 47 + 35: 527 = 17 x 31 + 36: 529 = 23 x 23 + 37: 533 = 13 x 41 + 38: 551 = 19 x 29 + 39: 559 = 13 x 43 + 40: 583 = 11 x 53 + 41: 589 = 19 x 31 + 42: 611 = 13 x 47 + 43: 629 = 17 x 37 + 44: 649 = 11 x 59 + 45: 667 = 23 x 29 + 46: 671 = 11 x 61 + 47: 689 = 13 x 53 + 48: 697 = 17 x 41 + 49: 703 = 19 x 37 + 50: 713 = 23 x 31 +``` ### Removing pretty print If we remove the pretty print this reduces to: -- cgit From ccf0a92fa27cf305889b8ddfd60f13ef72c063d6 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 19 Jun 2022 18:08:31 +0100 Subject: Update README.md --- challenge-169/james-smith/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/challenge-169/james-smith/README.md b/challenge-169/james-smith/README.md index 97043ad0bf..4e6dba4d50 100644 --- a/challenge-169/james-smith/README.md +++ b/challenge-169/james-smith/README.md @@ -235,6 +235,7 @@ Some examples for larger values of `n` are: | 275,000 | 58,919,206,088 | 23.858192 | | 300,000 | 69,976,609,587 | 33.509092 | | 325,000 | 81,981,196,443 | 33.551032 | +| 350,000 | 94,917,245,000 | 23.54.43572 | And these are the first numbers with `n` digits... -- cgit From 6a9feeb8fdbf9ee0abfed66d51bda92b443c1801 Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 19 Jun 2022 22:58:23 +0100 Subject: Update README.md --- challenge-169/james-smith/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/challenge-169/james-smith/README.md b/challenge-169/james-smith/README.md index 4e6dba4d50..5c699ca4f3 100644 --- a/challenge-169/james-smith/README.md +++ b/challenge-169/james-smith/README.md @@ -251,6 +251,7 @@ And these are the first numbers with `n` digits... | 10,554 | 100,018,800 | 24.36.52.73 | | 34,562 | 1,000,042,200 | 23.36.52.193 | | 111,892 | 10,000,373,888 | 27.88392 | +| 359,341 | 100,001,075,328 | 27.32.72.116 | ### Github formatting script.... -- cgit