Skip to content

Chat server for factorization of long numbers with the help of an optimized Sieve of Eratosthenes prime number generation algorithm.

License

Notifications You must be signed in to change notification settings

phil330d/TCPChatFactorizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TCPChatFactorizer

Creates a "Chat Server" on port 10023 which you can connect to with telnet like this: telnet localhost 10023.

As soon as the server is started, it starts prime number generation with a slightly optimized Sieve of Eratosthenes algorithm. It takes less than 20 seconds to generate all prime numbers up to 3037000499 (the square root of long, so you can factorize every long number).

After ~20 seconds you are able to factorize any (long) number by typing it in the chat.

If you type ? you get a overview how long it has been running and how many numbers were found while generating, and how long it has took and how many were found after it has finished.

If you type exit you disconnect from the server.

If you type anything else than a positive long number, it will give you NumberFormatError.

About

Chat server for factorization of long numbers with the help of an optimized Sieve of Eratosthenes prime number generation algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages