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!)
A245209 Nonprimes such that it takes exactly 4 iterations of reverse-and-add digits to generate a prime. 2
10031, 10040, 10190, 10231, 10390, 10441, 10480, 10541, 10721, 10921, 10970, 11021, 11030, 11180, 11221, 11380, 11431, 11470, 11531, 11711, 11911, 11960, 12020, 12170, 12370, 12460, 12521, 12701, 12901, 12950, 13010, 13160, 13201, 13360, 13450, 13511, 13601 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
EXAMPLE
Reversing digits and adding starting with 11021 -> 23032 -> 46064 -> 92128 -> 174257 and 174257 is a prime while the prior numbers are not primes.
MATHEMATICA
p4Q[n_] := Module[{lst = NestList[# + FromDigits[Reverse[IntegerDigits[#]]] &, n, 4]}, NoneTrue[Most[lst], PrimeQ] && PrimeQ[Last[lst]]]; Select[Range[100000], p4Q](* using NoneTrue function from Mathematica version 10 *)
CROSSREFS
Sequence in context: A210130 A213319 A241880 * A205822 A251136 A213318
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 April 24 12:31 EDT 2024. Contains 371937 sequences. (Running on oeis4.)