Given a string s consisting of digits, find all unique prime numbers that can be formed by converting any contiguous substring of s into an integer.
Return the sum of the
Constraints:
s.length
s consists of only digits.
Given a string s consisting of digits, find all unique prime numbers that can be formed by converting any contiguous substring of s into an integer.
Return the sum of the
Constraints:
s.length
s consists of only digits.