Merge pull request #1356 from xexyl/weisberg1994
This commit is contained in:
2 files changed
+7
-4
No files matched your search
@@ -39,7 +39,7 @@ include ../../var.mk
|
|||||||
# Common C compiler warnings to silence
|
# Common C compiler warnings to silence
|
||||||
#
|
#
|
||||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-pointer-to-int-cast \
|
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
|
# Common C compiler warning flags
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -31,11 +31,12 @@ a core file. :-)
|
|||||||
|
|
||||||
This entry confuses some C-preprocessors and some C-beautifiers.
|
This entry confuses some C-preprocessors and some C-beautifiers.
|
||||||
We found one cpp that processed this source differently when
|
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:
|
## Author's remarks:
|
||||||
|
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
|
|
||||||
The following short program implements the "Yet Another" algorithm for
|
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
|
reception of a signal (any will do equally well), as well as in the
|
||||||
event of a system shutdown or reboot.
|
event of a system shutdown or reboot.
|
||||||
|
|
||||||
|
|
||||||
### Bugs
|
### 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
|
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
|
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
|
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
|
the output through your favorite pager (`more` or `less`), and not output to a
|
||||||
paper output device (unless you have *LOTS* of paper).
|
paper output device (unless you have *LOTS* of paper).
|
||||||
|
|
||||||
|
|
||||||
### Technical
|
### Technical
|
||||||
|
|
||||||
The original "Yet Another Prime Program" algorithm used here was developed as a
|
The original "Yet Another Prime Program" algorithm used here was developed as a
|
||||||
|
|||||||
Reference in new issue
Block a user