Format fix 2000/primenum/README.md

I didn't check for typos. That will come later.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-19 14:24:15 -07:00
1 parent ce9bfca9c7
commit 5f48d50fb6
1 file changed
+5 -3
+5 -3
View File
@@ -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 stdout. Fortunately, you can recover the original message simply by
running the program a second time. Try: running the program a second time. Try:
./primenum n < textfile | ./primenum n > textfile2 ```sh
diff textfile textfile2 ./primenum n < textfile | ./primenum n > textfile2
diff textfile textfile2
```
where n is the same number (modulo 64). So, the prime number generator 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 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 * a for loop that's used as an if statement
* dependence on the high bit being 0 * dependence on the high bit being 0
- Try also - 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: ## Copyright and CC BY-SA 4.0 License: