Running this code, you can set the desired difficulty (in bits, how many of the leading bits must be zero) and see how long it takes for your computer to find a solution. In <<pow_example_outputs>>, you can see how it works on an average laptop.
++++
<?hard-pagebreak?>
++++
[[pow_example_outputs]]
.Running the proof of work example for various difficulties