Closed SpirosArk closed 2 years ago
👋🏻 Hey @SpirosArk
💖 Thanks for opening this issue 💖
A Codinasion team member should be by to give feedback soon.
Just some clarification 🤔
random-prime-number.c on Pull https://github.com/codinasion/codinasion-programme/pull/1250 solves issue https://github.com/codinasion/codinasion-programme/issues/1117
count-capital-letters
, random-number
, random-prime-number
But #1117 is for random odd number
How #1250 closes #1117
random-prime-number does not check about whether the found number is divided by any other number.
So the output is always an odd number that does not checked whether it is prime or not.
All prime numbers are odd, but not all odd numbers are prime. We miss the check on random-prime-number.
All prime numbers are odd, but not all odd numbers are prime.
2 is prime.
Yeah, was referring to the logic that random-prime-number.c
is executing.
Maybe done, please check 👍🏻
This issue has been closed !!!
📆 Total duration: 0 days
random-prime-number.c on Pull #1250 solves issue #1117 issue #1127 must reopen
Originally posted by @SpirosArk in https://github.com/codinasion/codinasion-programme/issues/1252#issuecomment-1192858808