Skip to content
/ kaprekar Public

A simple program to determine which four-digit integers reach Kaprekar's constant in a single step.

Notifications You must be signed in to change notification settings

rkbry/kaprekar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kaprekar

A simple program to determine which four-digit integers reach Kaprekar's constant in a single step, i.e., if a four-digit number reordered ascending is subtracted from the same number reorded descending, the result is Kaprekar's constant, 6174.

I was inspired to write this code when I saw a short video. See https://en.wikipedia.org/wiki/6174 for more information.

NOTE: I am a hobbyist and my coding skills are weak so maybe view this repo as an example of what not to do.

About

A simple program to determine which four-digit integers reach Kaprekar's constant in a single step.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages