don't use recursion
Merge branch 'master' of https://github.com/Bryukh-Checkio-Tasks/checkio-task-prime-palindrome-golf