OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
R. Ondrejka, The Top Ten: a Catalogue of Primal Configurations.
EXAMPLE
a(10) = 419, 419 is a prime and 1, 4 and 9 are squares.
MATHEMATICA
Select[FromDigits/@Tuples[{0, 1, 4, 9}, 4], PrimeQ] (* Harvey P. Dale, Sep 22 2019 *)
PROG
(Python)
from itertools import product
from sympy import isprime
A061246_list = [int(i+''.join(j)+k) for l in range(10) for i in '149' for j in product('0149', repeat=l) for k in '19' if isprime(int(i+''.join(j)+k))] # Chai Wah Wu, Jan 19 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Apr 23 2001
EXTENSIONS
Corrected and extended by Jason Earls, May 17 2005
Edited by N. J. A. Sloane, Aug 29 2008 at the suggestion of R. J. Mathar
STATUS
approved