Square but not cube: Difference between revisions
→{{header|jq}}: tighten
(→{{header|jq}}: tighten) |
|||
Line 1,453:
'''Works with gojq, the Go implementation of jq'''
<lang jq>
# Emit an unbounded stream
def squares_not_cubes:
def icbrt: pow(10; log10/3) | round;
range(1; infinite)
| (.*.)
|
▲ | select( (.*.*.) != $sq)
limit(30; squares_not_cubes)
Line 1,476 ⟶ 1,475:
1089
</pre>
=={{header|Julia}}==
|