Skip to content

A program that calculates every Hardshad number up to a five hundred million

Notifications You must be signed in to change notification settings

hangarau/Harshad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Harshad

A program that calculates every Harshad number up to five hundred million (500,000,000 or 5×10^8).

What is a Harshad number?

According to Wikipedia, a harshad number is a number in a given base that is divisible by the sum of its digits when written in that base.

Basically, if I take a number (e.g. 954) and divide it by the sum of the digits (9+5+4), the answer should be whole: 954 ÷ (9+5+4) = 53, which is whole.

What's the point?

Because I can. :)

About

A program that calculates every Hardshad number up to a five hundred million

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages