Hi numerix,
Thanks for the reply and tips.
I noticed that someone has completed VONNY with 178M of memory running Java in 5.56.
I have added psyco, and it has gone from 27 seconds to do 1000 random tests on my location machine, to 8 seconds. Quite a speed up.
However, I get NZEC with .21 time and 37M of memory. Note, my solution is not running out of time, so I'm guessing pysco wouldn't be the answer.
I believe I have memory under control, I have a good fast implementation of recursion. I have reworked my data structures to make sure full scans of data are done as few times as possible. And I'm using pysco.
I will do PRIC like you suggest.
What is puzzling me is that I get a runtime error... I don't think it's running out of memory. I have run it with all manner of different sets of numbers, and it doesn't crash, blow up, or otherwise slowdown.