• Log in or sign up for an account here: https://www.sythe.org/login

Moork's Challenge for mIRC Scripters!

Joined
Feb 12, 2007
Sythe Gold
0
Messages
83
Well, i had an idea, why not have a challenge for mIRC scripters?

Well, my challenge is to make an identifier called $prime.
If the number is prime it returns true, else it returns false.

For those who dont know what prime numbers are, a prime number is a number a number that has only 2 factors, 1 and itself.

Well, i wouldnt want you to post the script, but PM me.

No regex!
No Coms/Dll's.
You can use Token identifiers such as gettok, findtok etc etc.

Good luck!
 
More details please. Like, what it's based on, speed? byte size?
What's the format? $prime(NUM) ?
What can the number be? Any number below 1000? Includes negative numbers?
 
More details please. Like, what it's based on, speed? byte size?
What's the format? (NUM) ?
What can the number be? Any number below 1000? Includes negative numbers?

A: Negative prime numbers; they don't exist (negative*negative = positive), so return no/false/-1/what the fuck ever if it's negative

B: format would be obvious, $prime(##)

C: i'm guessing that he just wants you to do it. make it as [in]efficient as you want.
 
Or we could just used the identifiers already there and do this in like 3 seconds, lol.
 
Or we could just used the identifiers already there and do this in like 3 seconds, lol.


There are no identifiers which returns the prime number, lol.
You'll have loop through the numbers
 
More details please. Like, what it's based on, speed? byte size?
What's the format? $prime(NUM) ?
What can the number be? Any number below 1000? Includes negative numbers?

This will be judged on bytes.
Format is $prime(NUM) yes.
Does not include NEGATIVE numbers.

Yes, and if resident does not like this, he may close it.
Thanks.
 
This will be judged on bytes.
Format is (NUM) yes.
Does not include NEGATIVE numbers.

Yes, and if resident does not like this, he may close it.
Thanks.

Of course, but i wouldn't deny others an experience simply because i dislike mIRC scripting; carry on.
 
Back
Top