0

Python question

Write a program called palindromeprimes.py that uses recursive functions to find all palindromic primes between two integers N, M, supplied as input. (start and end points are included). To calculate whether a number is a palindrome or not, incorporate your answer to question 1. examples of palindromic primes are 11, 191, 313. You may assume it's always the case that N>1 and that N≀M. No form of loop must be used in your program.

11th May 2018, 2:42 PM
Amadeus
Amadeus - avatar
7 Answers
+ 1
Doing it by recursion does not look interesting. Here is what you get if you try to make it fast. https://code.sololearn.com/cCp5Kdx3vUDF/?ref=app
11th May 2018, 4:49 PM
VcC
VcC - avatar
11th May 2018, 5:14 PM
VcC
VcC - avatar
+ 1
Trying to have sololearners doing your homework is bad !
11th May 2018, 5:21 PM
VcC
VcC - avatar
0
how would anyone here go about that? helping out a friend. oh and add the following lines to the top of your program to increase the amount of recursion that python will allow: import sys sys. setrecursionlimit (30000)
11th May 2018, 2:45 PM
Amadeus
Amadeus - avatar
0
well thats what the question wants
11th May 2018, 4:52 PM
Amadeus
Amadeus - avatar
0
its for my friend XD, not me
11th May 2018, 6:53 PM
Amadeus
Amadeus - avatar
0
I'm not even doing python, I've been doing Javascript for the past weeks
11th May 2018, 6:54 PM
Amadeus
Amadeus - avatar