I need to find a prime with the info, the sum of all its digits, the first and last digit and how much digits the number has.
For example, lets check if $13$ is prime.
First digit: 1
Last digit: 3
Sum of all digits: 13 -> 1 + 3 = 4
Amount of digits: 2
How can I be sure that this number is 100% prime by only using this info?