Eban numbers

From Fōrmulæ wiki
Jump to: navigation, search

This page is a solution to the task Eban numbers in the Rosetta Code, written in Fōrmulæ.

Description (from Rosetta Code)

Definition

An eban number is a number that has no letter e 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 (1021) will be considered in/for this task.

This will allow optimizations to be used.

Task
  1. Show all eban numbers ≤ 1,000 (in a horizontal format), and a count
  2. Show all eban numbers between 1,000 and 4,000 (inclusive), and a count
  3. Show a count of all eban numbers up and including 10,000
  4. Show a count of all eban numbers up and including 100,000
  5. Show a count of all eban numbers up and including 1,000,000
  6. Show a count of all eban numbers up and including 10,000,000
  7. Show all output here.
See also

Solution

Program

EbanCode.png

Case 1

Showing all eban numbers ≤ 1,000 (in a horizontal format), and a count.

EbanCase01.png

Case 2

Showing all eban numbers between 1,000 and 4,000 (inclusive), and a count.

EbanCase02.png

Case 3

Showing a count of all eban numbers up and including 10,000

EbanCase03.png

Case 4

Showing a count of all eban numbers up and including 100,000

EbanCase04.png

Case 5

Showing a count of all eban numbers up and including 1,000,000

EbanCase05.png

Case 6

Showing a count of all eban numbers up and including 10,000,000

EbanCase06.png