Primality by trial division: Difference between revisions
→{{header|jq}}
(jq) |
|||
Line 1,152:
false
</tt>
''Note: if your jq does not have <tt>all</tt>, the following will suffice:''
def all(generator; condition):
reduce generator as $i (true; . and ($i|condition));
=={{header|K}}==
|