Skip to main content

Harshad (Niven) Numbers

Test whether a number is a Harshad number and list every one up to a limit.

In number theory, a Harshad number (also called a Niven number) is one that is divisible by the sum of its own digits.

Example: 18 has digit sum 1 + 8 = 9, and 18 divided by 9 is exactly 2, so 18 is a Harshad number.

Check a number

List Harshad numbers

Calculated in your browser. Limited to 100000 to stay responsive.