ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Problems.P33

Description

Part of Ninety-Nine Haskell Problems. Some solutions are in Solutions.P33.

Synopsis

Documentation

coprime :: Integral a => a -> a -> Bool Source #

Determine whether two positive integer numbers are coprime. Two numbers are coprime if their greatest common divisor equals 1.

Examples

>>> coprime 35 64
True
>>> coprime 1173 1547
False