Problem 44385. Extra safe primes
22.3% Correct | 77.7% Incorrect
Last Solution submitted on May 03, 2023
Show 1 older comment
Mehmet OZC on 16 Oct 2017
15 = 2*7+1 and 7 = 2*3+1 so 15 should be a safe prime. Am I missing something?
Peng Liu on 16 Oct 2017
An (extra) safe prime number itself must be a prime number. Here, 15 is not a prime, so it is not (extra) safe prime
danteliujie on 27 Feb 2019
For case 8, x = 719;
which will lead to 44, not prime, the result should be false, but it's true now.
Am I right?
Matthew Eicholtz on 28 Feb 2019
danteliujie, x = 719 does not lead to 44.
Solution CommentsShow comments
Problem Recent Solvers710
Extract leading non-zero digit
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
More from this Author44
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!