Jump to content

Primality by trial division: Difference between revisions

(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}}==
2,496

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.