login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A245210 Nonprimes such that it takes exactly 5 iterations of reverse-and-add digits to generate a prime. 2
1001320, 1001720, 1002220, 1004420, 1005520, 1005710, 1005910, 1006120, 1007420, 1008710, 1009220, 1009510, 1009610, 1011220, 1011620, 1012120, 1014320, 1015420, 1015610, 1015810, 1016020, 1017320, 1018610, 1019120, 1019410, 1019510, 1021120, 1021520 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
EXAMPLE
Reversing and adding starting with 1005710 -> 1180711 -> 2351522 -> 4603054 -> 9106118 -> 17222137 and 17222137 is prime while the prior numbers are not primes.
MATHEMATICA
p5Q[n_]:=Module[{lst=NestList[#+FromDigits[Reverse[ IntegerDigits[#]]]&, n, 5]}, NoneTrue[Most[lst], PrimeQ]&&PrimeQ[Last[lst]]]; Select[ Range[ 3000000], p5Q] (* using NoneTrue function from Mathematica version 10 *)
CROSSREFS
Sequence in context: A227137 A096212 A065325 * A357098 A250698 A250683
KEYWORD
nonn,base
AUTHOR
Harvey P. Dale, Jul 13 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 9 01:56 EDT 2024. Contains 375024 sequences. (Running on oeis4.)