OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..2000
EXAMPLE
71 is included because it is prime and (100-71) and (1000-71) and (10000-71) and (100000-71) are also primes.
MAPLE
select(p-> andmap(j-> isprime(abs(10^j-p)), [$2..5]),
[seq(ithprime(i), i=1..10000)])[]; # Alois P. Heinz, Aug 28 2019
MATHEMATICA
Select[Prime[Range[10000]], And @@ PrimeQ /@{100-#, 1000-#, 10000-#, 100000-#}&]
Select[Prime[Range[6000]], AllTrue[Abs[10^Range[2, 5]-#], PrimeQ]&] (* Harvey P. Dale, May 25 2023 *)
PROG
(Magma) [p: p in PrimesUpTo(70000)| IsPrime(100-p)and IsPrime(1000-p) and IsPrime(10000-p) and IsPrime(100000-p)] // Vincenzo Librandi, Jan 29 2011
CROSSREFS
KEYWORD
easy,less,nonn
AUTHOR
Harvey P. Dale, Feb 27 2007
EXTENSIONS
Name clarified by Peter Munn, Aug 23 2019
STATUS
approved