I'm going to try to make it take input command-line style
perl ulam.pl 234
where 234 would be the originator and then it would just skip the input section.
Ideally, I want to make it take a range, and run on the whole range.
perl ulam.pl 234-77
would do runs on 234, 235, 236, 237, etc., up to 277. I know it's possible; I just don't know if I can do it.
Trying to prove something like Ulam's Conjecture is leagues beyond me; I figure I can just get some practice in proofs by fiddling around with it. I think there's a way to do it by culling evens, that there may be some way to prove that for certain classes of evens, they can only produce numbers that lead to 1, etc., and then figuring a way to generalize it.
I gotta get more coffee.
The next step with the unique-item inventory script is...making the card-incrementer, the one that puts 'em in the cart. Want to try that after I fiddle with ulam's a little more.