A
Akubay
New member
- Freecoin
- 170
Complete the following function to return a list of strings lesser than 999 which form prime numbers from a given string of numbers.
For example if the given string is “23167”. All the prime numbers less than or equal to 999 in the string are 2,3,23,31,7,167. So, your function must return [2,3,23,31,7,67,167]. Although 23167 is a prime number we can ignore it because it is greater than 999.
Output: should be list of integers
Please anyone know How to slove in jupyter notebook
For example if the given string is “23167”. All the prime numbers less than or equal to 999 in the string are 2,3,23,31,7,167. So, your function must return [2,3,23,31,7,67,167]. Although 23167 is a prime number we can ignore it because it is greater than 999.
Output: should be list of integers
Please anyone know How to slove in jupyter notebook