# Thread: Players vs Mods VI

1. +18

Wazzap y'all!

2. + 19

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

*Gallops around with Doochess*

3. Originally Posted by Wass
Starcraft and Math, Joy. Two of my signatures things.

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

4. Gallops around with kitteh and wass.

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...

5. + 18

6. + 16

7. +14

YAY! Fellow procrastinators!!!

*picks up the speed of her galloping*

8. + 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.

9. + 11

10. 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.

11. Well never mind again, I already have a for loop in this program and apparently its pretty much identical to C anyway.

- - - Updated - - -

Originally Posted by Hastings
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.

12. Divide by all possible numbers? Is going to take so long to calculate is 1235123869224 is a prime then :/
+ 12

13. Originally Posted by Anakso
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....

14. Originally Posted by Asmekiel
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

15. + 8

16. Awesome got it working

- - - Updated - - -

Originally Posted by Asmekiel
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!

17. Originally Posted by Anakso
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.

18. Originally Posted by Dyra
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
•