Pandigital prime: Difference between revisions

→‎Algol 68: Common code: Fix even number detection
(→‎{{header|Wren}}: Combined the two versions into 1.)
(→‎Algol 68: Common code: Fix even number detection)
Line 26:
IF k = 1 THEN
INT last digit = a[ UPB a ];
IF last digit /= 0 ANDODD last digit /= 2 AND last digit /= 5 THEN
# the number doesn't end in 2 or 5 so might be prime #
INT a value := a[ 0 ];
3,021

edits