PlaneShift

Fan Area => The Hydlaa Plaza => Topic started by: Keknehv on December 11, 2004, 07:35:05 pm

Title: Prime Program...
Post by: Keknehv on December 11, 2004, 07:35:05 pm
Hi again all.

As my first (real) project in C++, I decided to port my old BASIC (slow) prime program to C++.

The locations for the two files are:

Source:
http://freewebs.com/keknehv/prime.cpp

Compiled (Win32) program:
http://freewebs.com/keknehv/prime.exe


For all of you linux users... just download the source and run:

user@location:/folder/:c++ -o prime prime.cpp

Any comments or ideas for optimizations or bug reports are appreciated.

EDIT: converted files to links
Title:
Post by: Psycon on December 12, 2004, 09:17:29 pm
The speed of the program will be greatly inhanced by writing directly the prime numbers into your code in a long array or by having them from a file. ;)
Title:
Post by: Keknehv on December 12, 2004, 09:29:24 pm
lol :P

If you looked at the code, you would find that I already have a few included :D.

But do you really want a 70 MB prime program?
Title:
Post by: RussianVodka on December 12, 2004, 09:35:27 pm
Cable companies will love you....
Dialup users will hate you....

So glad i use DSL.
Title:
Post by: Keknehv on December 12, 2004, 11:32:40 pm
I have cable, but they won\'t let me use it for a server :(

Hehe... welcome HTTP port 5080!