[Trial]Contest 1 - VB (.NET & Legacy) - Prime Numbers
Contest 1 - Prime Numbers
Please Note This Is A Trial Contest And Is A Basic Example :)
Before starting I recommend you take a look at the Faq located here
Language
VB (Legacy) and VB .NET (entries from the two languages will be judged seperatly)
Deadline
25\09\04 (25th September 2004) Noon (1200 Hours) (GMT) I will not accept entries after this date
After I\We have finished marking we will show you how I\we marked the entries and the scores each application recieved.
Main Aims
The aim of this contest is to design a program which generates the first 1000 prime numbers and displays them in a standard VB listbox. (Please note that 1 is excluded from being a prime number!). Please be aware that we only want one prime number per item in the listbox, So code like lstPrimes.AddItem Prime1 & " - " & Prime2 & " - " & ... will not be accepted. This is mainly to keep the contest fair and also to allow us to test the listbox is correct item by item instead of doing extra processing.
What Is A Prime Number?
'Any integer greater than 1 that is divisible only by 1 and itself'
How Is It To Be Marked?
Firstly I will make sure your code actually generates the first 1000 prime numbers and displays them into a standard VB listbox if it does not, it will be disqualified from the contest!
Primarily the application you submit will be tested on its speed (On my computer) to generate the first 1000 prime numbers and display them into a listbox!
If 2 sets of code run at the same speed then it will be down to the best designed code (Me and the moderator team will take a look) If no winner is decided from this the 2 contestents will take joint-1st place
What If My Code Has Problems?
If there are any compile errors with your code or it simply does not work, it will not be accepted into the contest (simply because I dont have the time to debug code as well as mark entries)
3rd Party Controls
We see no need for 3rd party controls to be used in this contest, if you find a reason why you would need one please PM me or one of the Admin team
What Do I Win?
The prize for first place is a custom name title for the period of 2 weeks so you can show your fellow VBForum members you have wona contest!
Where Do I Send My Work?
You just reply to the thread located here (waiting for mod to accept)
What Format Should My Work Be In?
It would be best if you could zip up your project using winzip or another similar program!
Source code only please i cannot accept exe's or any form of compiled code!
Final Note
Have fun please remember the aims of the contests are to have fun, also please note commented code is not required but prefered!
IMPORTANT! - TECHNICALITIES
1. Are we allowed to provide out own timing statistics (assuming we agree to have the method of which scrutinised)? This enables us to more accurately show you how fast our algorithms are.
2. My algorithm requires me to specify the first 2 primes (2 and 3) in order for the algorithm to work, is this legal and / or will i be required to generate 2 more primes to compensate?
Please reply promptly.
I'm taking this seriously :D Hope you guys have a strong alg, cos I have.
Plus, do we get points for originality and sexiness of coding technique?
Re: IMPORTANT! - TECHNICALITIES
Quote:
Originally posted by wossname
2. My algorithm requires me to specify the first 2 primes (2 and 3) in order for the algorithm to work, is this legal and / or will i be required to generate 2 more primes to compensate?
I was going to ask that next....after I got the rest of the answer, that I have not...:(....
do we have the same algorithm...;)....well BTW read an article on finding primes a year ago. An Indian guy found a new algo that was so good, and also so difficult that only a couple of the guys at MIT or what it is called in USA could follow his lecture...:D