login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A109276
Primes with a square > 1 as a substring.
1
19, 29, 41, 43, 47, 59, 79, 89, 97, 109, 139, 149, 163, 167, 179, 181, 191, 193, 197, 199, 229, 239, 241, 251, 257, 269, 281, 293, 347, 349, 359, 367, 379, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 509, 541
OFFSET
1,1
EXAMPLE
29, 163, 181 (resp.) contain 9=3^2, 16=4^2, 81=9^2 (resp.).
MATHEMATICA
ssQ[n_]:=With[{i=IntegerDigits[n]}, AnyTrue[Select[FromDigits/@ Flatten[ Table[ Partition[i, k, 1], {k, Length[i]}], 1], #>1&], IntegerQ[ Sqrt[ #]]&]]; Select[ Prime[ Range[100]], ssQ] (* The program uses the AnyTrue function from Mathematica version 10 *) (* Harvey P. Dale, Dec 13 2015 *)
CROSSREFS
Sequence in context: A038364 A151360 A329106 * A133765 A158846 A157026
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Jun 25 2005
STATUS
approved