1. #45281
    The Lightbringer Joyful's Avatar
    Join Date
    Dec 2010
    Location
    Sweee?
    Posts
    3,517
    +18

    Wazzap y'all!

  2. #45282
    Moderator Wass's Avatar
    Join Date
    Jan 2011
    Location
    PvP forums
    Posts
    1,896
    + 19

    Starcraft and Math, Joy. Two of my signatures things.

    *Gallops around with Doochess*
    Tryhard Duelist, Not even trying , unsubed right now.
    I often post from my mobile device, typos in my posts are 99% likely to be because of that.
    All I would ever want and need is a hug.

  3. #45283
    Immortal Asmekiel's Avatar
    Join Date
    Sep 2010
    Location
    Fading away
    Posts
    7,092
    + 20

  4. #45284
    The Lightbringer Joyful's Avatar
    Join Date
    Dec 2010
    Location
    Sweee?
    Posts
    3,517
    Quote Originally Posted by Wass View Post
    Starcraft and Math, Joy. Two of my signatures things.

    *Gallops around with Doochess*
    Interesting.....


  5. #45285
    Gallops around with kitteh and wass.

    Bad work bad work bad work!

    I am done with working here Thursday, wtb Thursday plox, tired of waking up shortly before 5 am, it's terribly training to wake up that early...

  6. #45286
    + 18
    Lover Like You
    ----------------------
    Last.fm
    ----------------------
    Imagination

  7. #45287
    Moderator Anakso's Avatar
    Join Date
    Apr 2010
    Location
    Perth, Australia
    Posts
    4,826
    + 16

  8. #45288
    Fluffy Kitten Dyra's Avatar
    Join Date
    Oct 2009
    Location
    Fording the Ox
    Posts
    1,340
    +14

    YAY! Fellow procrastinators!!!

    *picks up the speed of her galloping*

    A reader lives a thousand lives before he dies. The man who never reads lives only one.

  9. #45289
    Immortal Asmekiel's Avatar
    Join Date
    Sep 2010
    Location
    Fading away
    Posts
    7,092
    + 15

  10. #45290
    Moderator Anakso's Avatar
    Join Date
    Apr 2010
    Location
    Perth, Australia
    Posts
    4,826
    + 13

    I hate questions like this.

    Got to last part of writing this program, now I have to write code to figure out if a number is prime or not. How I do dis!

    Wasbro you're good at math, simple way of finding out if a number is prime short of trying to divide it with every number?

    - - - Updated - - -

    Think I figured out a way but I need to find out how to write a for loop in Java.

  11. #45291
    + 11
    Lover Like You
    ----------------------
    Last.fm
    ----------------------
    Imagination

  12. #45292
    Anakso, I think you have to do a loop and divide the number you're testing by all possibly numbers

    For(int j = 0; j <=(the number); j++){
    And probably need an if statement here.
    And some code hehe.
    }

    Actually...that for loop probably wouldn't work...
    Or it could...depending on how you coded the rest of the loop.
    Last edited by xxxdeletexxx; 2013-08-13 at 02:18 PM.

  13. #45293
    Moderator Anakso's Avatar
    Join Date
    Apr 2010
    Location
    Perth, Australia
    Posts
    4,826
    Well never mind again, I already have a for loop in this program and apparently its pretty much identical to C anyway.

    - - - Updated - - -

    Quote Originally Posted by Hastings View Post
    Anakso, I think you have to do a loop and divide the number you're testing by all possibly numbers

    For(int j = 0; j <=(the number); j++){
    And probably need an if statement here.
    And some code hehe.
    }
    Yea googled it and found C code for it Seems Java is very similar too heh.

  14. #45294
    Immortal Asmekiel's Avatar
    Join Date
    Sep 2010
    Location
    Fading away
    Posts
    7,092
    Divide by all possible numbers? Is going to take so long to calculate is 1235123869224 is a prime then :/
    + 12

  15. #45295
    Quote Originally Posted by Anakso View Post
    Well never mind again, I already have a for loop in this program and apparently its pretty much identical to C anyway.

    - - - Updated - - -


    Yea googled it and found C code for it Seems Java is very similar too heh.
    Indeed indeed, I'm working with VBA right now and it's driving me crazy because it has like no proper structural stuff like java does.
    The only thing it has are parenthesis...and that's only when it's selecting something....it has no brackets and braces and its loops have no parenthesis....

  16. #45296
    Fluffy Kitten Dyra's Avatar
    Join Date
    Oct 2009
    Location
    Fording the Ox
    Posts
    1,340
    Quote Originally Posted by Asmekiel View Post
    Divide by all possible numbers? Is going to take so long to calculate is 1235123869224 is a prime then :/
    That's divisible by 2, ergo not prime.

    ^_^

    *gallops some more*

    +10

    A reader lives a thousand lives before he dies. The man who never reads lives only one.

  17. #45297
    + 8
    Lover Like You
    ----------------------
    Last.fm
    ----------------------
    Imagination

  18. #45298
    Moderator Anakso's Avatar
    Join Date
    Apr 2010
    Location
    Perth, Australia
    Posts
    4,826
    Awesome got it working

    - - - Updated - - -

    Quote Originally Posted by Asmekiel View Post
    Divide by all possible numbers? Is going to take so long to calculate is 1235123869224 is a prime then :/
    + 12
    Luckily computers can do stuff faster than us

    What is VBA Don't think I have heard of it!

  19. #45299
    Quote Originally Posted by Anakso View Post
    Awesome got it working
    Excellent!


    Back to procrastinating for me!

    Well, maybe I might could do some work...but only time will tell whether I will finish it today or tomorrow...

    - - - Updated - - -

    VBA is the programming language used in Microsoft Excel to write macros.

  20. #45300
    Immortal Asmekiel's Avatar
    Join Date
    Sep 2010
    Location
    Fading away
    Posts
    7,092
    Quote Originally Posted by Dyra View Post
    That's divisible by 2, ergo not prime.
    Well, you get the point

    + 9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •