33 lines
1.6 KiB
Text
33 lines
1.6 KiB
Text
;Definition:
|
|
An '''eban''' number is a number that has no letter <big> '''e''' </big> in it when the number is spelled in English.
|
|
|
|
Or more literally, spelled numbers that contain the letter '''e''' are banned.
|
|
|
|
|
|
The American version of spelling numbers will be used here (as opposed to the British).
|
|
|
|
'''2,000,000,000''' is two billion, ''not'' two milliard.
|
|
|
|
|
|
Only numbers less than '''one sextillion''' ('''10<sup>21</sup>''') will be considered in/for this task.
|
|
|
|
This will allow optimizations to be used.
|
|
|
|
|
|
|
|
;Task:
|
|
:::* show all eban numbers ≤ '''1,000''' (in a horizontal format), and a count
|
|
:::* show all eban numbers between '''1,000''' and '''4,000''' (inclusive), and a count
|
|
:::* show a count of all eban numbers up and including '''10,000'''
|
|
:::* show a count of all eban numbers up and including '''100,000'''
|
|
:::* show a count of all eban numbers up and including '''1,000,000'''
|
|
:::* show a count of all eban numbers up and including '''10,000,000'''
|
|
:::* show all output here.
|
|
|
|
|
|
;See also:
|
|
:* The MathWorld entry: [http://mathworld.wolfram.com/EbanNumber.html eban numbers].
|
|
:* The OEIS entry: [http://oeis.org/A006933 A6933, eban numbers].
|
|
:* [[Number names]].
|
|
<br><br>
|
|
|