Here, we say that a natural is primeful if it is possible to obtain a prime number by deleting some (possibly none) digits from .
For example, 6814 is primeful because deleting 8 and 4 results in 61, which is prime.
Given several , can you determine whether they are primeful or not?
Input consists of several , all between 1 and .
For every given , tell if it is primeful or not.
Author: Félix Moreno
Generation: 2026-01-25T11:38:44.190Z
© Jutge.org, 2006–2026.
https://jutge.org