|
-
December 12th, 2002, 10:13 PM
#1
The Challenge
Well.....I Challenge you (The users) to write a program in Qbasic to find the larges prime in a million (1000000).
Think of it as chance to do some research online, and learn some programing and such at the same time 
WHAT IS A PRIME?:
A prime number is a number only devisable by itself and 1, good examples of this is 3,5,7 and 9.
THE RULES:
* You Must count upwards (1 to 1000000)
* You Must start at a number between 1 and 5
* You must show the time taken in your program.
WHAT IS QBASIC?:
Qbasic is a fairly easy to learn, and if a good programing language to start off with.
I'll give you some hint's now, and maby some further one's later onward's.
One of the main ideas behind this is to learn how to make a program effective and fast, and have fun (Well, call me sad but I thought it was fun)
Qbasic is Free ware, it can be sought out by a simple Google, if too many ppl start looking for it, I might serve it here, but I'd rather not...
DELIVERY:
Once you feel that your program is good enough to enter, you can PM it to me in Text form as a *.BAS file, NO COMPILED ENTERIES WILL BE MARKED.
THE PRIZE:
Um, well, it would have been a mars bar, but you'll have to put up with some respect and AP's, and any thing else I or any one else can think up in the mean time.
The winner will be anounced in the next Newsletter so make sure you read it
(MsMittens: See me if ther's any questions)
Any question's.....Just PM me, and I'll see wot I can do....
Good Luck.
- Noia
Hint's:
Arrays (DIM)
Nested loops
Theory of Primes
With all the subtlety of an artillery barrage / Follow blindly, for the true path is sketchy at best. .: Bring OS X to x86!:.
Og ingen kan minnast dei linne drag i dronningas andlet den fagre dag Då landet her kvilte i heilag fred og alle hadde kjærleik å elske med.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|