Problem 44675. Find prime number couples
Solution Stats
Problem Comments
-
3 Comments
bainhome
on 6 Jun 2018
Is there any particular reason why "1" should be a prime number? Since none of exampe in test suite pointing us to that direction. besides, I fail to figure out the necessity of that either.
James
on 7 Jun 2018
Mathematically speaking, 1 is not a prime number. Primes are defined as number greater than 1. Also, the difference between 2 and 1 isn't two, so I don't see why [1 2] would be a valid output anyway.
Jafar Mortadha
on 13 Jun 2018
James and bainhome, I apologise for making the two errors that you pointed out. I have corrected them and updated the problem.
Problem Recent Solvers22
Suggested Problems
-
1458 Solvers
-
997 Solvers
-
444 Solvers
-
3216 Solvers
-
38 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!