Wasteful Number Calculator

Check whether writing the factorization of n uses more digits than writing n itself.

Math and PercentUpdated 2026-11-182 min read
Wasteful Number Calculator
A whole number from 1 to 1,000,000.
Digits in factorization
...
Digits in n...
Classification...

What it does

A wasteful number is one whose prime factorization, written with exponents, uses more decimal digits than the number itself. The sequence begins 4, 6, 8, 9, 12, 18 and 20. The number 4 is written with one digit, but its factorization 2 squared uses two digits.

The name extravagant is also used. The opposite case, where both spellings use the same number of digits, gives an equidigital number, and fewer factorization digits gives a frugal number.

The counting convention is simple: write each distinct prime in full, and write the exponent only when it is greater than one. Add the digit counts of all those pieces and compare with the digits of n.

This page factors the input, applies that convention and reports both digit counts with the verdict, so the comparison can be checked directly.

The input limit is one million, which keeps factorization immediate and the printed counts small.

How to use

  1. Enter a whole number n from 1 to 1,000,000.
  2. Read the classification in the main result box.
  3. Check the digits counted in the factorization beside it.
  4. Compare with the digits needed for n itself.
  5. The default n = 4 reproduces the worked example.
  6. Try n = 10 to see an equidigital number.

Formula

n is wasteful when the digit count of its prime factorization exceeds the digit count of n
n
The integer being classified.
factor digits
Digits of each prime plus digits of exponents above one.
number digits
Digits in the decimal form of n.

An exponent of one is omitted from the written factorization, so it contributes no digits. A prime such as 10 factors as 2 times 5, using two digits, which equals the two digits of 10, making it equidigital rather than wasteful.

Worked example

Example: n = 4

The page opens with n = 4.

  1. Write 4 in decimal: it uses one digit.
  2. Factor 4 as 2^2, using the digit 2 for the prime and 2 for the exponent.
  3. That is two digits in the factorization.
  4. Two exceeds one, so 4 is wasteful.
  5. The tool reports factor digits 2, number digits 1, and Wasteful.
  6. For 10 the factorization 2 x 5 uses two digits, matching the number.

Reference table

Digit counts for small numbers
nFactorizationFactor digitsNumber digitsVerdict
42^221Wasteful
62 x 321Wasteful
82^321Wasteful
102 x 522Equidigital
122^2 x 332Wasteful

Limits

  • Inputs above 1,000,000 are rejected to keep factorization quick.
  • The convention writes exponents only when greater than one.
  • Only base ten digit counts are used.
  • The tool gives a verdict, not the written factorization itself.

Common mistakes

  • Counting an exponent of one as a digit.
  • Using binary digits instead of decimal digits.
  • Counting multiplication signs or spaces as digits.
  • Assuming every composite number is wasteful.
  • Confusing wasteful with frugal.

Try it yourself

Quick checks. Answers sit tucked under each question.

Is 4 wasteful?

Yes. Its factorization 2^2 uses two digits against one for 4.

Is 10 wasteful?

No. Its factorization 2 x 5 uses two digits, the same as 10.

Is 12 wasteful?

Yes. Its factorization 2^2 x 3 uses three digits against two for 12.

Questions

What is another name?

Extravagant number.

How are exponents counted?

Only exponents greater than one add their digits.

What is the opposite property?

Frugal numbers use fewer factorization digits.

What is the equal case called?

Equidigital.

Are results exact?

Yes, integer factorization and digit counts are used.

What input range is accepted?

Whole numbers from 1 through 1,000,000.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.