OFFSET
1,1
COMMENTS
It seems that most of the semiprimes of this form (but not all, only those satisfying an additional property) can be factored very quickly (e.g. numbers with up to 1200 decimal digits can be factored in a couple of seconds) using a very simple method.
Squarefree semiprimes n such that lpf(n)-1 divides n-1. Semiprimes n = pq with primes p < q such that p-1 divides q-1. If n is such a semiprime, then q^n == q (mod n). - Thomas Ordowski, Sep 18 2018
PROG
(PARI) isok(n) = {if ((bigomega(n) == 2) && (omega(n) == 2), my(p = factor(n)[1, 1], q = factor(n)[2, 1]); (q-1) % (p-1) == 0; ); } \\ Michel Marcus, Sep 18 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Vassilis Papadimitriou, Jul 12 2009, Jul 13 2009
EXTENSIONS
More terms from R. J. Mathar, Aug 06 2009
STATUS
approved