Square-free integers: Difference between revisions

Content deleted Content added
Peak (talk | contribs)
jq
Peak (talk | contribs)
m →‎{{header|jq}}: consistency
Line 776:
test for whether a number is square-free can be written in one line:
 
def square_freeis_square_free: . as $n | all( squares; divides($n) | not);
 
In words: to verify whether an integer, $n, is square_free, check that no admissible square divides $n.