The number 204 is unprimeable because no single digit can be changed to make it prime. In contrast, the number 207 is not unprimeable because changing the first digit to 0, 1, 3, 6, or 9 or the second digit to 2, 5, or 7 would make it prime.
Write a function to determine whether the input number is unprimeable.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers18
Suggested Problems
-
Return the largest number that is adjacent to a zero
5547 Solvers
-
Find the two most distant points
2959 Solvers
-
Calculate the Levenshtein distance between two strings
1513 Solvers
-
Project Euler: Problem 4, Palindromic numbers
1299 Solvers
-
Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
335 Solvers
More from this Author329
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!