Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Prime # Outputter
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
bwgroom




PostPosted: Thu Nov 04, 2004 8:31 pm   Post subject: Prime # Outputter

Here is a program i just made cuz i was bored... It outputs all the prime numbers from 1 - (inputted value)

Have fun Laughing



Prime Finder.t
 Description:
Faster Prime Finder

Download
 Filename:  Prime Finder.t
 Filesize:  1.06 KB
 Downloaded:  164 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Nov 04, 2004 8:39 pm   Post subject: (No subject)

umm... fix it Confused
link
another
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
bwgroom




PostPosted: Thu Nov 04, 2004 8:48 pm   Post subject: (No subject)

What do ya mean fix it? whats there to fix?
AsianSensation




PostPosted: Thu Nov 04, 2004 9:03 pm   Post subject: (No subject)

yeah, it's too slow. There are other methods, that are faster in finding primes then the one you posted. Essentially, you just modded the number by all the ones less than it. There are better ways. Good job at trying though.
Tony




PostPosted: Thu Nov 04, 2004 9:07 pm   Post subject: (No subject)

bwgroom wrote:
whats there to fix?

read the two links posted Rolling Eyes
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
bwgroom




PostPosted: Thu Nov 04, 2004 9:18 pm   Post subject: (No subject)

lol im a noob programmer.... i just put it up an easy way (because i didn't know of a better way)

O..... i didn't notice the 2 links
bwgroom




PostPosted: Thu Nov 04, 2004 10:09 pm   Post subject: (No subject)

Alright i used your theory of square routeing the values... i uploaded the faster one

i modified your way of calculating it to accomidate my output layout...

now its fast and looks nice Laughing
Danny




PostPosted: Tue Nov 09, 2004 10:43 pm   Post subject: (No subject)

I like it. Now I know every prime number from 1 to 5. Congrats holmes!
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: