OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=5 because 2*5-1=9=semiprime and 2*5+1=11=non-semiprime.
MAPLE
Contribution from R. J. Mathar, Dec 12 2010: (Start)
isA001358 := proc(n) is(numtheory[bigomega](n) = 2) ; end proc:
for n from 1 to 120 do p := ithprime(n) ; if isA001358(2*p-1) <> isA001358(2*p+1) then printf("%d, ", p); end if; end do: (End)
MATHEMATICA
Select[Prime[Range[200]], Count[PrimeOmega[2#+{1, -1}], 2]==1&] (* Harvey P. Dale, Oct 05 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Apr 20 2010
STATUS
approved