This is what I have so far. It's wrong in a bunch of ways. I can't seem to find whats wrong. It worked well on paper though :D So... I need some help. Can't use strings. It's giving me wrong palindromes. The numbers have to be prime and palindrome.

```
void makePalindrome(int prime, int count)
{
int x = prime;
int revPrime = prime;
int n = prime;
while(n>0)
{
revPrime = (prime%10) * pow(10.0, count-1) + (prime/10);
prime = revPrime;
n = n/10;
} if(revPrime == x)
{
cout << x << " <-prime palindromes-> " << revPrime << endl;
}
}
```