OFFSET
1,2
COMMENTS
A unitary divisor d of k is a number d such that d|k and gcd(d, k/d) = 1.
A080715 is the subsequence of the squarefree terms of this sequence.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Unitary Divisor.
Wikipedia, Unitary divisor.
MATHEMATICA
q[n_] := AllTrue[Select[Divisors[n], #^2 < n && CoprimeQ[#, n/#] &], PrimeQ[# + n/#] &]; Select[Prime[Range[90]] - 1, q]
PROG
(PARI) is(n) = fordiv(n, d, if(d < n^2 && gcd(d, n/d) == 1 && !isprime(d+n/d), return(0))); return(1);
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Dec 02 2022
STATUS
approved