C
C#11mo ago
Rick Dalton

Can anyone help me with the odd prime numbers program?

Facing difficulty in college assignment.
No description
13 Replies
eddyrick
eddyrick11mo ago
do you have a plan outlined or any thoughts on how to acheive this?
Pobiega
Pobiega11mo ago
What part is stumping you? Ie, exactly where are you facing difficulties
Buddy
Buddy11mo ago
$details
MODiX
MODiX11mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Rick Dalton
Rick DaltonOP11mo ago
sorry guys I was afk actually I am stumping in prime number logic odd number part is quite easy but prime numbers are annoying me
Angius
Angius11mo ago
Finding out if a number is prime or not is fairly simple, actually What characterizes a prime number?
Rick Dalton
Rick DaltonOP11mo ago
prime number are those which are divide by itself and 1
Angius
Angius11mo ago
Yeah And if we invert that condition, they're numbers that cannot be divided by any other number besides 1 and itself Sounds to me like we can easily check that in a loop For low prime numbers, at least
Rick Dalton
Rick DaltonOP11mo ago
can you write me a statement ? just statement with syntax
Angius
Angius11mo ago
Why don't you give it a shot yourself?
Rick Dalton
Rick DaltonOP11mo ago
Alright let me try
Rick Dalton
Rick DaltonOP11mo ago
No description
Rick Dalton
Rick DaltonOP11mo ago
@ZZZZZZZZZZZZZZZZZZZZZZZZZ thanks

Did you find this page helpful?