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!)
A274932 Squares n = k^2 with the property that nextprime(k) is a substring of n. 3

%I #17 Jul 15 2016 11:20:10

%S 529,729,6889,12769,162409,644809,851929,1261129,47969476,64048009,

%T 317837584,1600240009,2822053129,24421563076,40001200009,84290347584,

%U 107667328129,145381301521,160002400009,437766166321,788815751409

%N Squares n = k^2 with the property that nextprime(k) is a substring of n.

%H Chai Wah Wu, <a href="/A274932/b274932.txt">Table of n, a(n) for n = 1..39</a> (all terms < 4*10^18)

%e 529 = 23^2, and nextprime(23) = 29 is a substring of 529, so 529 is a term.

%t Select[Range[2*10^6]^2,SequenceCount[IntegerDigits[#], IntegerDigits[ NextPrime[ Sqrt[ #]]]]>0&] (* The program uses the SequenceCount function from Mathematica version 10 *) (* _Harvey P. Dale_, Jul 13 2016 *)

%t Select[Range[2*10^6], {} != StringPosition @@ ToString /@ {#^2, NextPrime@ #} &]^2] (* _Giovanni Resta_, Jul 15 2016 *)

%Y Suggested by A052074.

%K nonn,base

%O 1,1

%A _Harvey P. Dale_ and _N. J. A. Sloane_, Jul 13 2016

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 12 10:21 EDT 2024. Contains 375092 sequences. (Running on oeis4.)