Unprimeable numbers: Difference between revisions

Content added Content deleted
(Added XPL0 example.)
m (Minor edit to C code)
Line 375: Line 375:
printf("\n600th unprimeable number: %'u\n", n);
printf("\n600th unprimeable number: %'u\n", n);
uint32_t last_digit = n % 10;
uint32_t last_digit = n % 10;
if (lowest[last_digit] == 0)
if (lowest[last_digit] == 0) {
{
lowest[last_digit] = n;
lowest[last_digit] = n;
++found;
++found;