Files
ioccc/2015/endoh4
Cody Boone Ferguson 009e1b7522 Link in SECURITY.html to all web pages
The location of the link is in the About menu under the 'Contacting the
IOCCC' and above 'Thanks for the help'. At first I had it at the very
bottom, under 'IOCCC markdown guidelines', but it seemed better to have
it closer to contacting the IOCCC. This is the same location in the no
JavaScript menu (which, for those who do not know or forget, is not a
requirement except for some screen sizes).

The top level Makefile has a new 'security' rule. Updated make help.

Typo fixes in make help.

SECURITY.html has had a few updates as well: change the wording of entry
code is unsupported (it now says 'ALL CODE IN ALL IOCCC ENTRIES IS
UNSUPPORTED!!') and it now links to the mkiocccentry repo and how to
report a possible security vulnerability in that repo; as that IS
supported - and since there was reference to discussing security
concerns is in SECURITY.html - even though the entries will not receive
security updates - it seemed a good idea to have a link to report such
security issues in the mkiocccentry repo. Perhaps the FAQ needs to be
updated for this too.
2024-07-15 08:55:54 -07:00
..
2024-06-14 06:52:23 -07:00
2023-03-07 21:35:00 -08:00
2020-12-30 16:57:03 -08:00
2023-07-06 21:49:38 -07:00

To build:

    make

There is an alt version which is the originally submitted entry. See Alternate code below for details.

To use:

    ./prog <a number of arguments>

Try:

    ./try.sh

Alternate code:

An alternate version of this entry, prog.alt.c, is provided. This alternate code does not contain improvements suggested by Gil Dogon; it is the author's original entry.

Alternate build:

    make alt

Alternate use:

Use prog.alt as you would prog above.

Judges' remarks:

For this one liner it is best to avoid prime numbers. The output groups factors in the x-y dimensions. How many factors can be represented before you run out of command line argument space? How could you modify the program to experiment with numbers that have more or larger factors?

Author's remarks:

Visual factorization 1-liner. Try:

    gcc -o prog prog.c
    ./prog @
    ./prog @ @
    ./prog @ @ @
    ./prog @ @ @ @
    ./prog @ @ @ @ @ @
    ./prog @ @ @ @ @ @ @ @
    ./prog @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @

Inspired by Animated Factorization Diagrams.

prog.alt.c is the original version that I submitted. Gil Dogon kindly improved it during the review. Thank you!