O'Halloran numbers: Difference between revisions
Content added Content deleted
(conjecture) |
m (→{{header|jq}}: for jaq) |
||
Line 69: | Line 69: | ||
# Emit a stream of possible cuboid areas less than or equal to the specified limit, |
# Emit a stream of possible cuboid areas less than or equal to the specified limit, |
||
# $maxarea, which should be an even integer. |
# $maxarea, which should be an even integer. |
||
def cuboid_areas( |
def cuboid_areas(maxarea): |
||
maxarea as $maxarea |
maxarea as $maxarea |
||
# min area per face is 1 so if total area is $maxarea, the max dimension is ($maxarea-4)/2 |
# min area per face is 1 so if total area is $maxarea, the max dimension is ($maxarea-4)/2 |