Prime string check
A string is a prime string when both its length and the sum of the ASCII codes of its characters are prime numbers. Print Yes or No.
Reported in: Capgemini (2026 batch) (memory-based)
Input
One line: the string (no spaces).
Output
Yes or No.
Constraints
1 ≤ length ≤ 1000.
Example 1
Input:
ad
Output:
YesExample 2
Input:
abc
Output:
NoHint: Write one is_prime function and use it twice.