Search:

Type: Posts; User: robin_

Search: Search took 0.08 seconds.

  1. Re: Check if number is prime number or not problem[SOLVED]

    I see, sorry didn't mean to spoil any ideas :D
  2. Re: Check if number is prime number or not problem[SOLVED]

    Why n/2? Don't you mean the square root of n?
  3. Re: Check if number is prime number or not problem[SOLVED]

    Remember you also only have to check the odd divisors.
  4. Re: Check if number is prime number or not problemm

    Instead of counting the divisors, have you tried checking all possible divisors? I mean iterate from 2 to (n-1) if your number is n. A tip by the way, if your number is even and larger than 2, you...
Results 1 to 4 of 4