Unprimeable numbers: Difference between revisions

Content added Content deleted
(→‎{{header|ALGOL 68}}: Tweaks and corrected headings)
(→‎{{header|ALGOL 68}}: Corrected comment)
Line 149: Line 149:
ELIF last digit = 2 OR last digit = 5
ELIF last digit = 2 OR last digit = 5
THEN
THEN
# the final digit is even or 5, changing the other digits can't make a prime #
# the final digit is 2 or 5, changing the other digits can't make a prime #
# unless there is only one other digit which we change to 0 #
# unless there is only one other digit which we change to 0 #
INT v := leading digits;
INT v := leading digits;