As usual, I am curious about the distribution of the primes. This morning I wondered what percent of numbers with N digits were prime. Not an earth shattering curiosity… Naturally, I wrote a little perl program to answer it for me. Here is the preamble:

1 2 3 4 5 |
#!/usr/bin/env perl use strict; use warnings; use Math::Prime::XS qw( is_prime ); |

This says that we are a Perl program and […]