title: Write a program to print all palindromic prime between 2 given elements
body: <p>I know what a <a href="http://en.wikipedia.org/wiki/Palindromic_prime" rel="nofollow">palindromic prime</a> number is. I just want to know how should I make a program for this in Java? </p>
  
  <p>What I am thinking is that I will make two functions -</p>
  
  <p>1) a function which takes the number as argument and checks whether the number is prime or not?</p>
  
  <p>2) a function which takes the number as argument and checks whether it is palindrome or not?</p>
  
  <p>then apply the AND (&amp;&amp;) operator which returns TRUE only if both conditions are true and then print that number on output.</p>
  
  <p>Is this approach correct or are there any problems?</p>
  
  <p>Let me know some other methods to solve this problem. Thank you.</p>