Talk:Pandigital prime: Difference between revisions
m
→How about ...: μs, not ns
m (→How about ...: μs, not ns) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 82:
if (x % (i += 2) == 0) goto bottom;
}
sw.Stop(); Console.Write("{0} {1}
bottom: ;
}
Line 89:
{{out}}
@ Tio.run:
<pre>76540231 41.4
P.S. The task description would have to be altered to give the example of the 0..4 pandigital as follows:
Line 106:
:Why not do both? As in: a pandigitial makes use of all the digits 1 to n, a pandigital0 uses all the digits 0 to n. Added a "with 0" section to the Phix entry, even with the full inner workings of both the output is still quite short. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 10:00, 11 September 2021 (UTC)
:: Yeah, doing both seems a better idea to me and, if we make the '0' version optional, the existing solutions will still be valid. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 10:43, 11 September 2021 (UTC)
::OK, added the optional part, and removed my non-0 version. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 12:33, 11 September 2021 (UTC)
|