aboutsummaryrefslogtreecommitdiff
path: root/toys/other/factor.c
AgeCommit message (Collapse)Author
2017-05-14factor shouldn't give incorrect answers for >64-bit integers.Elliott Hughes
2016-03-13factor: use long long math (64 bit on 32 bit platforms) and handle negativeRob Landley
numbers even though we use unsigned math now.
2016-02-10use unsigned long with factorizabera
2015-03-01Fix several printf_format warnings.Rob Landley
2014-12-24Teach factor to accept whitespace separated arguments (reported by Robert ↵Rob Landley
Thompson). (The diff looks bigger than it is because of reindenting.)
2014-08-01factor: catch integer overflow.Rob Landley
Now factor 9223372036854775783 (largest positive 64 bit signed prime) takes a couple minutes but gives the right answer.
2014-08-01Add factor.Rob Landley
I was reading http://www.muppetlabs.com/~breadbox/txt/rsa.html and it mentioned "factor" and I noticed it was in coreutils. I'm not sure why it's in coreutils, but it's pretty trivial, so...