OFFSET
1,1
COMMENTS
Sophie Germain primes which are also Cyclops numbers.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..2000
EXAMPLE
MAPLE
isA005384 := proc(n) isprime(n) and isprime(2*n+1) ; end proc:
isA134808 := proc(n) local dgs, ndgs; dgs := convert(n, base, 10) ; mdg := (nops(dgs)+1)/2 ; if type(nops(dgs), 'even') then false; elif n = 0 then true; else if op(mdg, dgs) <> 0 then false; else if mul(op(k, dgs), k=1..mdg-1) =0 or mul(op(k, dgs), k=mdg+1..nops(dgs)) = 0 then false; else true; end if; end if; end if; end proc:
isA183058 := proc(n) isA005384(n) and isA134808(n) ; end proc:
for n from 0 to 50000 do if isA183058(n) then printf("%d, ", n); end if; end do: # R. J. Mathar, Jan 05 2011
MATHEMATICA
csgpQ[n_]:=Module[{idn=IntegerDigits[n], len}, len=Length[idn]; PrimeQ[2n+1]&&OddQ[len]&&idn[[(len+1)/2]]==0&&Count[idn, 0]==1]; Select[Prime[ Range[ 4500]], csgpQ] (* Harvey P. Dale, Jun 06 2020 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Omar E. Pol, Dec 26 2010
STATUS
approved