OOOOH! Send i to my function(outside of main), then if it returns true push it onto the stack, else don't!
I am pretty think sometimes in my thinking. I trap myself inside a box and can't seem to break out when I am too close to the problem.
I was just trying to manipulate my isPrime() to work(?) by returning the numbers instead of doing the 'check' it was intended to do. Cool!
Thanks! That just might make everything hunky! Awesome.
That WORKS WORKS WORKS!
456, returns 19, 3, 2, 1;
2093, returns 23, 13, 7, 1.
These factors are ALL prime!
Thank you so much tabstop. A second brain attacking a problem is always a wonderful thing!