Talk:Pandigital prime: Difference between revisions

Content added Content deleted
m (→‎How about ...: μs, not ns)
 
Line 82: Line 82:
if (x % (i += 2) == 0) goto bottom;
if (x % (i += 2) == 0) goto bottom;
}
}
sw.Stop(); Console.Write("{0} {1} ns", x, sw.Elapsed.TotalMilliseconds * 1000); break;
sw.Stop(); Console.Write("{0} {1} μs", x, sw.Elapsed.TotalMilliseconds * 1000); break;
bottom: ;
bottom: ;
}
}
Line 89: Line 89:
{{out}}
{{out}}
@ Tio.run:
@ Tio.run:
<pre>76540231 41.4 ns</pre>--[[User:Enter your username|Enter your username]] ([[User talk:Enter your username|talk]]) 16:48, 10 September 2021 (UTC)
<pre>76540231 41.4 μs</pre>--[[User:Enter your username|Enter your username]] ([[User talk:Enter your username|talk]]) 16:48, 10 September 2021 (UTC)
P.S. The task description would have to be altered to give the example of the 0..4 pandigital as follows:
P.S. The task description would have to be altered to give the example of the 0..4 pandigital as follows: