OFFSET
1,1
EXAMPLE
prime(8) = 19 and prime(8) + 9 * 8 = 91 are anagrams.
prime(55) = 257 and prime(55) + 9 * 55 = 752 are anagrams.
prime(60) = 281 and prime(60) + 9 * 60 = 821 are anagrams.
prime(61) = 283 and prime(61) + 9 * 61 = 832 are anagrams.
prime(228) = 1439 and prime(228) + 9 * 228 = 3491 are anagrams.
MATHEMATICA
Select[Range[10000], Sort[IntegerDigits[Prime[#]]] == Sort[IntegerDigits[Prime[#]+9#]] &] (* Stefano Spezia, Jan 01 2025 *)
PROG
(Magma)[n: n in [1..2*10^4] | Sort(Intseq(NthPrime(n))) eq Sort(Intseq(NthPrime(n) + 9*n))]; // Vincenzo Librandi, Jan 01 2025
CROSSREFS
KEYWORD
nonn,base,new
AUTHOR
Jean-Marc Rebert, Dec 31 2024
STATUS
approved