Question: Write a program called palindromeprimes.py that uses recursive functions to find allpalindromic primes between two integers N , M , supplied as input. ( start

Write a program called palindromeprimes.py that uses recursive functions to find allpalindromic primes between two integers N, M, supplied as input. (start and end points areincluded). A palindrome number is a number that reads the same from the front and the back.Examples are: 212,44,9009,4567654. To calculate whether a number is a palindrome or not, incorporate your answer to question1. A prime number is a number greater than 1 that is only divisible by 1 and itself.Examples are: 3,11,313.Some examples of palindromic primes are: 11,191,313.You may assume its always the case that N>1, and that NM.You MUST NOT use any form of loop in your program! (Yes, were pretty obsessive about this.)Add the following lines at the top of your program to increase the amount of recursion that Pythonwill allow:import syssys.setrecursionlimit (30000)Sample IO (The input from the user is shown in bold font do not program this):Enter the starting point N:200Enter the ending point M:800The palindromic primes are:313353373383727757787797Pattern matchingLets say that we are building a dictionary program that people can use to look up the spelling andmeaning of words. People dont always know the spelling of the word theyre looking for.For the program to function well, some sort of pattern matching is required. Pattern matching is aprocess by which we search for words with some given characteristics. The characteristics of wordsinclude their length, character content and character order.A pattern is a description of required characteristics.Page 3 of 5A simple way of representing a pattern is by using a sequence of letters and special wild cardcharacters. Question 2 and 3 concern such a scheme.Well introduce the scheme with examples:Pattern Possible word matchesletter letterl?ad lead, loadl*ad lad, launchpad, lead, letterhead, lipread, load, loggerhead, lunkhead, ...l?*ad launchpad, lead, letterhead, lipread, load, loggerhead, lunkhead, ...*action abreaction, abstraction, action, attraction, benefaction, coaction, ...And here are the rules: A pattern is a sequence of letters and the wild card characters ? and *. When a letter appears in a pattern it indicates that precisely that letter must appear at thesame position in matching words. When the wildcard character ? appears in a pattern it indicates that any letter may appearat that position. When the wildcard character * appears in a pattern it indicates that a sequence of zero ormore of letters is acceptable at that position.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!