Count the ways to split a digit string into prime numbers.
Unlock detailed company stats for this questionUpgrade
Given an integer cast as a string, count the number of ways to split it into prime numbers: digits must stay in the given order and the entire string must be used. Example: s="11375" has 3 splits - [11,37,5], [11,3,7,5], [113,7,5].
Community answers
No answers contributed by the community yet.
Related questions
Count the number of ways to split a string.Count the ways to decode a digit string into letters.Count the good ways to split an array.Related courses

Course

Course
Course
