OFFSET
1,1
COMMENTS
Sometimes n/2 is prime.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
3+2=5 for n=32 and 1+6=7 for n/2=16;
5+8=13 for n=58 and 2+9=11 for n/2=29;
2+1+2=5 for n=212 and 1+0+6=7 for n/2=106;
2+5+6=13 for n=256 and 1+2+8=11 for n/2=128.
MAPLE
filter:= proc(n)
isprime(convert(convert(n, base, 10), `+`)) and isprime(convert(convert(n/2, base, 10), `+`))
end proc:
select(filter, [seq(i, i=2..1000, 2)]); # Robert Israel, Sep 04 2019
PROG
(PARI) isok(n) = {if (n % 2, return (0)); dn = digits(n); dh = digits(n/2); isprime(sum(i=1, #dn, dn[i])) && isprime(sum(i=1, #dh, dh[i])); } \\ Michel Marcus, Aug 12 2013
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Patrick Capelle, Jun 20 2003
EXTENSIONS
More terms from Michel Marcus, Aug 12 2013
STATUS
approved