Search:

Type: Posts; User: Freaky Chris

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    2,812

    [SOLVED] Re: confused about a couple things

    Basically if you had to fnid the next prime after lets say 7. You would test each number after 7 until you found a prime using your isPrime() function.

    P.S I Hope to post some maths on evaluating...
  2. Replies
    5
    Views
    2,812

    [SOLVED] Re: confused about a couple things

    No worries, everyone makes synatically mis-takes from time to time especially when learning. Quite often it just needs a fresh pair of eyes to look at it.

    p.s read my edit to previous post

    Chris
  3. Replies
    5
    Views
    2,812

    [SOLVED] Re: confused about a couple things

    {
    boolean isPrime(int num)
    Should be

    boolean isPrime(int num)
    {


    Also another note on Math. You only need to check upto the sqr root of the number, lets say for then number 81 you do not...
Results 1 to 3 of 3