OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3)=13 is in the sequence because it is prime and 2*13-1=5^2 is a semiprime.
MAPLE
select(t -> isprime(t) and numtheory:-bigomega(2*t-1)=2, [2, seq(i, i=3..10000, 2)]);
MATHEMATICA
Select[Prime@ Range@ 153, PrimeOmega[2 # - 1] == 2 &] (* Michael De Vlieger, Oct 03 2019 *)
PROG
(Magma) [p: p in PrimesUpTo(1000)| &+[d[2]: d in Factorization(2*p-1)] eq 2]; // Marius A. Burtea, Oct 03 2019
(PARI) isok(p) = isprime(p) && (bigomega(2*p-1) == 2); \\ Michel Marcus, Oct 04 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Oct 03 2019
STATUS
approved