OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 47 is a term because 47 is a prime with 1 even digit and the next prime(53) has 0 even digits.
MAPLE
f:= n -> nops(select(type, convert(n, base, 10), even)):
P:= select(isprime, [2, seq(i, i=3..10000, 2)]):
F:= map(f, P):
P[select(t -> F[t] > F[t+1], [$1..nops(F)-1])];
MATHEMATICA
p = 2; s = {}; Do[If[Count[Mod[IntegerDigits[p], 2], 0]
> Count[Mod[IntegerDigits[q = NextPrime[p]], 2], 0], AppendTo[s, p]]; p = q,
{300}]; s
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov and Robert Israel, Oct 16 2023
STATUS
approved