I'm sure you've seen my very simple Mzk cypher plugin for Xchat.
Tell me what you have learned exactly and I'll see if I can find a suitable challenge that will be possible for you to do. Yet remain a bit of a challenge. right? ~
What variable types have you dealt with? Done for or while loops yet? Learnt how to create functions?
I'd be more than willing to help. Just give us a shout when you got a question.
OK, I made *another* prime number finding script. This time. It took me a couple of minutes rather than a couple of hours on my first PHP script years ago.
But the extra commenting took awhile longer to do.
# This will simply try to find prime numbers
#We'll guess that 2 is a prime already and start testing numbers from 2, our
# 'subject'. This value will hold our currently tested number to see if it is
# a prime.
primelist = 
subject = 2
#for each subject
#Is it prime?
#Result is a boolean value given to say whether the current subject
#number is a prime or not
result = True
#This will put each number in the list primelist into the variable prime.
# 'for each' number in the primelist. It will run through that code.
# It's pseudo code!
for prime in primelist:
#Check if the prime devides by our subject test number or not.
if subject%prime == 0:
#It looks like that it devided perfectly with a known prime
result = False
# Speed things up a little. Why work out all the other primes when
# it's not really needed?.
# It breaks the loop and stops. Exiting the loop and ignoring all
# other values in the primelist that it has yet to test.
#If it was a prime, result would stay True.
#We append the list to add our newly found prime onto the end of our
# prime list!
#Make sure our next subject is one bigger! for the next time round in
# this just stops the code once I found all primes upto 100,
# But not including 100. Otherwise we'll be in a infinte loop!
if subject == 100: