Search:

Type: Posts; User: TheMoogletPiper

Search: Search took 0.01 seconds.

  1. Thanks for the replies! My point with ''if...

    Thanks for the replies!

    My point with ''if it's divisible by 2'' is to already discard that number and go check the next one.
    But I'll take a deep look at all your hints and try to figure it...
  2. Well, a number that only when divided by itself...

    Well, a number that only when divided by itself (and 1) gives you 0 residue.

    Basically what I'm trying to do is, in the first while, check that the number doesn't give you 0 residue starting by 2...
  3. Thanks for the reply! I'll paste the code next...

    Thanks for the reply! I'll paste the code next time, I didn't even realize about that ^^'

    The only problem I have with your code is that I should be making it in only one function. I even thought...
  4. Beginner level issue: next prime number

    Hi all!

    New member here. Recently started programming in C, and it's my first time programming. I've been trying to solve this exercise for days and I can't manage to make it work, so here I...
Results 1 to 4 of 4