- pairwise-coprime? a b ...procedure
- a
- integer
- b
- integer
Returns #t if the integers a b ... are pairwise coprime, meaning that each pair of integers is coprime.
The numbers 2, 6 and 15 are coprime, but not pairwise coprime, because 6 and 15 share the factor 3:
> (pairwise-coprime? 2 6 15) #f
Wikipedia:Pairwise Coprime