OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
129 belongs to this sequence as both 1297 and 7129 are primes.
MAPLE
filter:= n -> isprime(10*n+7) and isprime(7*10^(1+ilog10(n))+n):
select(filter, [seq(i, i=1..1000, 2)]); # Robert Israel, Jul 01 2025
MATHEMATICA
Flatten@Position[{# +7*10^IntegerLength@#, 7+10*#}&/@Range@10000, {_?PrimeQ ..}] (* Hans Rudolf Widmer, Aug 22 2024 *)
Select[Range[900], AllTrue[{7*10^IntegerLength[#]+#, 10 #+7}, PrimeQ]&] (* Harvey P. Dale, Feb 01 2026 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Mar 02 2002
EXTENSIONS
More terms from Sascha Kurz, Mar 17 2002
Definition clarified by Harvey P. Dale, Feb 01 2026
STATUS
approved
