OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(n) local L; L:= convert(n, base, 10) mod 2;
not member(-1, L[1..-2]-L[2..-1])
end proc:
select(filter, [seq(ithprime(i), i=1..1000)]);
MATHEMATICA
With[{upto=100}, Select[Prime[Range[upto]], Length[SplitBy[IntegerDigits[#], Mod[#, 2]&]]<3&]] (* Paolo Xausa, Oct 18 2023 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Offset changed by Robert Israel, Oct 17 2023
STATUS
approved