Work with durations of sampled data, e.g. digital audio
A definitive Miller-Rabin prime determination test for small numbers (~2^81). For large numbers, fall back to OpenSSL::BN.