Coprimes: Difference between revisions

352 bytes added ,  3 years ago
(Realize in F#)
Line 631:
17 23
18 29</pre>
 
=={{header|Nim}}==
<lang Nim>import math
 
for (a, b) in [(21, 15), (17, 23), (36, 12), (18, 29), (60, 15)]:
echo a, " and ", b, " are ", if gcd(a, b) == 1: "coprimes." else: "not coprimes."</lang>
 
{{out}}
<pre>21 and 15 are not coprimes.
17 and 23 are coprimes.
36 and 12 are not coprimes.
18 and 29 are coprimes.
60 and 15 are not coprimes.</pre>
 
=={{header|Perl}}==
Anonymous user