in reply to
Re: a close prime number
in thread a close prime number
Your solution reminds me of me of a article currently referenced from the Joel on Software homepage, which talks about the the do-magic-here step.
I don't necessarily think of it as magic; I didn't know what the supplicant would consider a "close" number nor did I know which prime number finding algorithm he might find acceptable.
It's not really a joke answer. It's how I would divide the problem if I were doing it.
A Programming Language, 1962
Programming the 1900 series in COBOL, 1974
Algorithms + Data Structures = Programs, 1976
The C Programming Language, 1978
System V - Interface definition, 1986
Z80 Assembly Language Programming, 1979
TheSOURCE User's Manual, 1979
The C Primer, 1983
Interactive Fortran 77, A Hands on Approach, 1984
Perl.1 man page, 1991
Results (68 votes),