Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 439 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 439 Bytes

smithnumbers

Smith Number Generator by Stablefree.

Simply compile it, and pass an integer parameter to get all the Smith numbers up to the passed parameter!

Execute in the format './smith [-all/-check] [number]'. '-all' prints every Smith number up to 'number'. '-check' checks if your 'number' is a Smith number.

e.g. './smith -all 27' outputs '3 4 5 7 11 13 17 19 22 23 27' (note that most of these are prime) Have fun!