Hoax Number Calculator
Check whether a composite number's digit sum equals the summed digits of its distinct prime factors.
What it does
A hoax number is a composite integer whose digit sum equals the sum of the digits of its distinct prime factors. The sequence begins 22, 58, 84, 85, 94, 136 and 166. For 22 the digits add to four, and the distinct primes 2 and 11 also have digits adding to four.
Hoax numbers are close relatives of Smith numbers. The difference is that Smith numbers count prime factors with multiplicity, while hoax numbers ignore repeated factors and use each distinct prime once.
Because of that difference, every hoax number is a Smith number only when its factorization is squarefree. Numbers with repeated prime factors can be Smith numbers without being hoax numbers.
This page computes both digit sums with exact integer arithmetic and reports them beside the verdict, so the comparison is easy to check by hand.
The input limit is one million, which keeps factorization immediate in a browser.
How to use
- Enter a composite number n from 2 to 1,000,000.
- Read the classification in the main result box.
- Check the digit sum of your number beside it.
- Compare with the sum for the distinct prime factors.
- The default n = 22 reproduces the worked example.
- Try n = 58 to confirm another hoax number.
Formula
- n
- The composite integer being tested.
- S(n)
- The sum of decimal digits of n.
- p
- A distinct prime divisor of n.
Every prime appears once in the sum, no matter its exponent in the factorization. That is the defining difference from Smith numbers. Primes themselves are excluded because a prime trivially satisfies the equality.
Worked example
Example: n = 22
The page opens with n = 22.
- Add the digits of 22: 2 + 2 = 4.
- Factor 22 as 2 x 11 with distinct primes 2 and 11.
- Add the digits of the factors: 2 for the prime 2 and 1 + 1 for 11, total 4.
- The sums match and 22 is composite.
- The tool reports digit sum 4, factor digit sum 4, and Hoax number.
- For 58 the sums are both 13.
Reference table
| n | Digit sum | Distinct factor sum | Hoax |
|---|---|---|---|
| 22 | 4 | 4 | Yes |
| 23 | 5 | 5 | No, prime |
| 27 | 9 | 3 | No |
| 58 | 13 | 13 | Yes |
| 85 | 13 | 13 | Yes |
Limits
- Only composite integers from 2 to 1,000,000 are accepted.
- Primes are excluded by definition.
- Distinct prime factors are used, ignoring exponents.
- The tool gives a verdict, not a list of hoax numbers.
Common mistakes
- Counting repeated prime factors as in a Smith number.
- Treating a prime as a hoax number.
- Using the digital root instead of the digit sum.
- Adding the prime factors themselves rather than their digits.
- Assuming every Smith number is a hoax number.
Try it yourself
Quick checks. Answers sit tucked under each question.
Is 22 a hoax number?
Yes. Both relevant digit sums are 4.
Is 27 a hoax number?
No. The digit sum is 9 but the only distinct prime 3 has digit sum 3.
Is 58 a hoax number?
Yes. Its digit sum is 13 and its distinct primes 2 and 29 also total 13.
Questions
How do hoax and Smith numbers differ?
Hoax numbers ignore repeated prime factors; Smith numbers count them.
Are primes hoax numbers?
No, the definition requires compositeness.
Why the name hoax?
The numbers imitate Smith numbers through their digit sums.
Does the base matter?
Yes, this page uses base ten.
Are results exact?
Yes, factorization and digit sums use integers.
What input range is accepted?
Whole numbers from 2 through 1,000,000.