Well, sort of. The program really was a program to factor arbitrary (representable) integers, and the fact that they fed it a prime first doesn't alter that.
Does it successfully reject invalid inputs, or produce an undefined[1] result? :)
[1] I say "undefined", but I think I know what it's going to be :)
(Yes, the phrase "factorising large primes" really bugs me too -- even more so because I actually recognise in myself a tendency to say it, so although wrong, it must have _some_ resonance with what it ought to mean.)
(no subject)
Date: 2008-06-23 08:57 am (UTC)Edit: No, wait, there are two mentions of the first program, to work out a factor, and I read the wrong one.
(no subject)
Date: 2008-06-23 09:31 am (UTC)(no subject)
Date: 2008-06-23 12:40 pm (UTC)(no subject)
Date: 2008-06-23 12:56 pm (UTC)(no subject)
Date: 2008-06-23 01:26 pm (UTC)(no subject)
Date: 2008-06-23 04:23 pm (UTC)(no subject)
Date: 2008-06-23 10:01 am (UTC)(no subject)
Date: 2008-06-23 11:09 am (UTC)(no subject)
Date: 2008-06-23 11:03 pm (UTC)[1] I say "undefined", but I think I know what it's going to be :)
(Yes, the phrase "factorising large primes" really bugs me too -- even more so because I actually recognise in myself a tendency to say it, so although wrong, it must have _some_ resonance with what it ought to mean.)
(no subject)
Date: 2008-06-24 08:41 am (UTC)Too many zeroes in the price for error checking l-)
(...actually I'd quite happily spend a few weeks bashing in primality testing algorithms if there was a certain million in it. But there isn't l-)
(no subject)
Date: 2008-06-23 10:01 am (UTC)Easy program to write, then... assuming that the user only inputs prime numbers... now I see the problem...
(no subject)
Date: 2008-06-23 12:37 pm (UTC)