posted 2 years ago

Let me just start off by saying hello all Im new here and hopefully someone might be able to guide me in my problem.

I have to find numbers & list numbers that are prime and also palindrome like :

2 3 5 7 11 101 131 151 181 191

313 353 373 383 727 757 787 797 919 929

I was able to find the prime numbers (up to 20 for now just to make sure im on track)

However, i think something may be wrong with my reverse method because it doesnt compare properly in my if statement for option1.

If you untoggle the reverse(562897498) it gives the number reversed so im not sure what is wrong.

Any help would be awesome!

Ahh sorry if the code is messy, I've been working on this for a few hours

I have to find numbers & list numbers that are prime and also palindrome like :

2 3 5 7 11 101 131 151 181 191

313 353 373 383 727 757 787 797 919 929

I was able to find the prime numbers (up to 20 for now just to make sure im on track)

However, i think something may be wrong with my reverse method because it doesnt compare properly in my if statement for option1.

If you untoggle the reverse(562897498) it gives the number reversed so im not sure what is wrong.

Any help would be awesome!

Ahh sorry if the code is messy, I've been working on this for a few hours

Consider Paul's rocket mass heater. |