Anonymous user
Semiprime: Difference between revisions
Changed the function to return a boolean.
(Formatting. Replaced French "compte" by English "count".) |
(Changed the function to return a boolean.) |
||
Line 1,284:
=={{header|Nim}}==
<lang Nim>proc isSemiPrime(k: int):
var
i = 2
Line 1,295:
else:
inc i
result =
for k in 1675..1680:
echo k, (if k.isSemiPrime(): " is"
{{output}}
|