Jump to content

Home primes: Difference between revisions

No change in size ,  3 years ago
m
Use home not Home (as per wp and elsewhere)
m (→‎{{header|Phix}}: explained where 20000 came from)
m (Use home not Home (as per wp and elsewhere))
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.
 
Prime numbers are their own Homehome prime;
 
So:
Line 14:
HP7 = 7
 
If the integer obtained by concatenating increasing prime factors is not prime, iterate until you reach a prime number; the Homehome prime.
 
HP4(2) = HP22(1) = 211
Line 25:
;Task
 
* Find and show here, on this page, the Homehome prime iteration chains for the integers 2 through 20 inclusive.
 
 
Line 35:
;Impossible goal
 
* Show the the Homehome prime for HP49.
 
 
7,818

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.