Home primes: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: explained where 20000 came from) |
m (Use home not Home (as per wp and elsewhere)) |
||
Line 6: | Line 6: | ||
The traditional notation has the prefix "HP" and a postfix count of the number of iterations until the home prime is found (if the count is greater than 0), for instance HP4(2) === HP22(1) === 211 is the same as saying the home prime of 4 needs 2 iterations and is the same as the home prime of 22 which needs 1 iteration, and (both) resolve to 211, a prime. |
The traditional notation has the prefix "HP" and a postfix count of the number of iterations until the home prime is found (if the count is greater than 0), for instance HP4(2) === HP22(1) === 211 is the same as saying the home prime of 4 needs 2 iterations and is the same as the home prime of 22 which needs 1 iteration, and (both) resolve to 211, a prime. |
||
Prime numbers are their own |
Prime numbers are their own home prime; |
||
So: |
So: |
||
Line 14: | Line 14: | ||
HP7 = 7 |
HP7 = 7 |
||
If the integer obtained by concatenating increasing prime factors is not prime, iterate until you reach a prime number; the |
If the integer obtained by concatenating increasing prime factors is not prime, iterate until you reach a prime number; the home prime. |
||
HP4(2) = HP22(1) = 211 |
HP4(2) = HP22(1) = 211 |
||
Line 25: | Line 25: | ||
;Task |
;Task |
||
* Find and show here, on this page, the |
* Find and show here, on this page, the home prime iteration chains for the integers 2 through 20 inclusive. |
||
Line 35: | Line 35: | ||
;Impossible goal |
;Impossible goal |
||
* Show the the |
* Show the the home prime for HP49. |
||