From 5f48d50fb6d676665c3ee62c132d26ccb42df069 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 19 Apr 2023 14:24:15 -0700 Subject: [PATCH] Format fix 2000/primenum/README.md I didn't check for typos. That will come later. --- 2000/primenum/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/2000/primenum/README.md b/2000/primenum/README.md index ef2cd25fa..ef06beb4c 100644 --- a/2000/primenum/README.md +++ b/2000/primenum/README.md @@ -1,8 +1,8 @@ # Best Abuse of CPP -Raymond Cheong -[address subject to change] -MD, USA +Raymond Cheong +[address subject to change] +MD, USA ## To build: @@ -57,8 +57,10 @@ Instead, the program reads input from stdin and returns garbled text on stdout. Fortunately, you can recover the original message simply by running the program a second time. Try: - ./primenum n < textfile | ./primenum n > textfile2 - diff textfile textfile2 +```sh +./primenum n < textfile | ./primenum n > textfile2 +diff textfile textfile2 +``` where n is the same number (modulo 64). So, the prime number generator is actually a simple text encoder/decoder! Of course, don't forget that @@ -82,7 +84,7 @@ argument, otherwise the "bugs" in the program will cause it to crash! * a for loop that's used as an if statement * dependence on the high bit being 0 - Try also - echo THIS MESSAGE IS IN ALL CAPS | ./primenum 32 + `echo THIS MESSAGE IS IN ALL CAPS | ./primenum 32` ## Copyright and CC BY-SA 4.0 License: