As you can see, i have a reversal function in my code. but getting it to work with my prime numbers that i loop through is having me confused. I'm avoiding from the use of an array so i cant store my prime numbers into arrays. Any tip would be great!
I don't really understand what your code is trying to do. First of all, I notice that your reversal function is being used - you call it and it returns, but you don't store the return value anywhere.
What are the numbers you're trying to print? They are mostly prime numbers, but it also includes things like 11*11 (121) and 11*13 (143) which isn't prime. Is that the problem? You didn't actually describe your problem, or the expected / intended results, so I don't know.