[WIP] Solutions for https://protohackers.com exercises
TCP server that echoes back
cargo run 0To test
nc 127.0.0.1 8838Industrial strength primality tester
cargo run 1To test
nc 127.0.0.1 8838cargo run 2To test it quickly
python src/means_client.pythen type the messages as:
I,1,1|I,2,2|Q,1,2where messages are delimited by pipe and each message is delimited by comma. The script then sends an encoded message to the running server and prints the result of `Q`.
cargo run 3Then connect with
nc 127.0.0.1 8838and again to chat!
Build and run as follows
cargo run 4Then connect with
nc -u 127.0.0.1 8838Run the unusual budget chat with
cargo run 3then run this
cargo run 5Then connect with
nc -u 127.0.0.1 8839cargo run 6to test
python src/speed_daemon/client.py c1 c2 drsync -avz --exclude-from '.gitignore' ./ remoteuser@remoteserver:/path/to/remote/directory