OFFSET
1,3
COMMENTS
Complement of A219110. - M. F. Hasler, Apr 11 2013
LINKS
Zak Seidov, Table of n, a(n) for n = 1..10000
EXAMPLE
983 is in the sequence since 9+8 is prime and 8+3 is prime.
MAPLE
N:= 4: # to get all terms with up to N digits.
for p from 0 to 9 do P[p]:= select(t -> isprime(t+p), [$0..9]) od:
F:= proc(t) local r, p; r:= t mod 10; op(map(`+`, P[r], 10*t)) end proc:
S[1]:= {$1..9}:
for j from 2 to N do S[j]:= map(F, S[j-1]) od:
`union`({0}, seq(S[j], j=1..N));
# if using Maple 11 or lower, uncomment the next line:
# sort(convert(%, list));
# Robert Israel, Oct 27 2014
MATHEMATICA
fQ[n_] := Module[{d = IntegerDigits[n], s}, s = Most[d] + Rest[d]; And @@ PrimeQ[s]]; Flatten[Join[{Range[0, 9], Select[Range[11, 300], fQ]}]], fQ] (* T. D. Noe, Aug 21 2012 and Apr 17 2013; modified by Zak Seidov, Oct 28 2014 *)
PROG
(PARI) is_A182175(n)=!for(i=2, #n=digits(n), isprime(n[i-1]+n[i])||return) \\ M. F. Hasler, Oct 27 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jim Nastos, Apr 16 2012
STATUS
approved