Rare numbers: Difference between revisions
Content deleted Content added
→{{header|Go}}: Replaced Cartesian product with a recursive loop, unified the two previous versions and extended Rare number generation to 18 digits. |
m →{{header|Go}}: Corrected maxDigits. |
||
Line 136: | Line 136: | ||
} |
} |
||
const maxDigits = |
const maxDigits = 18 |
||
func toInt64(digits []int8, reverse bool) int64 { |
func toInt64(digits []int8, reverse bool) int64 { |