From f36f2c3d3929a183e425700266c8766157fe6b7d Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 10 Nov 2023 10:52:01 -0800 Subject: [PATCH] Format/typo check 1994/weisberg + update Makefile Added -Wno-implicit-int to Makefile. --- 1994/weisberg/Makefile | 2 +- 1994/weisberg/README.md | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/1994/weisberg/Makefile b/1994/weisberg/Makefile index d25f57def..026ddfa8e 100644 --- a/1994/weisberg/Makefile +++ b/1994/weisberg/Makefile @@ -39,7 +39,7 @@ include ../../var.mk # Common C compiler warnings to silence # CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-pointer-to-int-cast \ - -Wno-shift-op-parentheses + -Wno-shift-op-parentheses -Wno-implicit-int # Common C compiler warning flags # diff --git a/1994/weisberg/README.md b/1994/weisberg/README.md index 076eb9f37..ed58fe778 100644 --- a/1994/weisberg/README.md +++ b/1994/weisberg/README.md @@ -31,11 +31,12 @@ a core file. :-) This entry confuses some C-preprocessors and some C-beautifiers. We found one cpp that processed this source differently when -it was read on stdin instead of via `cc -E`. +it was read on `stdin` instead of via `cc -E`. ## Author's remarks: + ### Description The following short program implements the "Yet Another" algorithm for @@ -46,16 +47,18 @@ run to completion, so as an added feature, it will cease execution upon reception of a signal (any will do equally well), as well as in the event of a system shutdown or reboot. + ### Bugs -The alternative version ([weisberg.alt](weisberg.alt.c)) has never actually run +The alternative version ([weisberg.alt.c](weisberg.alt.c)) has never actually run to completion. After running for close to a week it had reached somewhere around 250e6, when it became necessary to test the reboot feature (which worked remarkably well). As there are quite a lot of primes to be found before reaching -`INT_MAX`, the output produced can be quite overwhelming, it recommended to pipe +`INT_MAX`, the output produced can be quite overwhelming so it's recommended to pipe the output through your favorite pager (`more` or `less`), and not output to a paper output device (unless you have *LOTS* of paper). + ### Technical The original "Yet Another Prime Program" algorithm used here was developed as a