The task is to generate the correct answer for a given math problem.
--------
Question: Problem: a palindrome is a number that reads the same front - to - back as it does back - to - front ( e . g . 202 , 575 , 1991 , etc . ) p is the smallest integer greater than 500 that is both a prime and a palindrome . what is the sum of the digits of p ?

Answer: 4


Question: Problem: what least number must be subtracted from 13294 so that the remainder is exactly divisible by 97 ?

Answer: 5


Question: Problem: a and b invests rs . 2500 and rs . 4000 respectively in a business . if a doubles his capital after 6 months . in what ratio should a and b divide that year ' s profit ?

Answer:
15 : 16