
-----------------------------------
bwgroom
Thu Nov 04, 2004 8:31 pm

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  :lol:

-----------------------------------
Tony
Thu Nov 04, 2004 8:39 pm


-----------------------------------
umm... fix it :? 
[url=http://www.compsci.ca/v2/viewtopic.php?t=6287]link
[url=http://www.compsci.ca/v2/viewtopic.php?t=297]another

-----------------------------------
bwgroom
Thu Nov 04, 2004 8:48 pm


-----------------------------------
What do ya mean fix it?  whats there to fix?

-----------------------------------
AsianSensation
Thu Nov 04, 2004 9:03 pm


-----------------------------------
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
Thu Nov 04, 2004 9:07 pm


-----------------------------------
whats there to fix?
read the two links posted :roll:

-----------------------------------
bwgroom
Thu Nov 04, 2004 9:18 pm


-----------------------------------
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
Thu Nov 04, 2004 10:09 pm


-----------------------------------
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  :lol:

-----------------------------------
Danny
Tue Nov 09, 2004 10:43 pm


-----------------------------------
I like it. Now I know every prime number from 1 to 5. Congrats holmes!
