If b is coprime to every element of the set n integers A{a1, a2, …an} so the b is also relatively prime to every product of elements of a set A.
Tag: prime
Prime
let i = 2, n;
while(n%i!==0&&i<=√n) i++;
if(i>√n) n∈P;
If b is coprime to every element of the set n integers A{a1, a2, …an} so the b is also relatively prime to every product of elements of a set A.
let i = 2, n;
while(n%i!==0&&i<=√n) i++;
if(i>√n) n∈P;