Rare numbers: Difference between revisions
Content deleted Content added
→{{header|Go}}: Added a second version based on Nigel Galloway;s approach. |
→Version 2: Removed a redundant declaration. |
||
Line 365: | Line 365: | ||
} |
} |
||
⚫ | |||
var ( |
|||
⚫ | |||
maxSquares = int64(math.Ceil(math.Sqrt(2 * math.Pow10(maxDigits)))) |
|||
) |
|||
func toInt64(digits []int8, reverse bool) int64 { |
func toInt64(digits []int8, reverse bool) int64 { |