Have you ever needed to do some hardcore prime numbers work?
To teach your kids the multiplication tables of the elite?
Then seek no more for this is what you have been looking for:
lein run
(primes-multiplication-table n)
(primes n)
Just add [prime-table "0.1.0-SNAPSHOT"]
as a dependency,
require prime-table.core
, and enjoy
Populating the matrix is speedy (3.8s for a 1000 x 1000 matrix in a quick test) so the first limitation for scalability is in the printing.
prime-table
uses tabs for printing the table, so if you print a table with
447 primes or more, you should use other method for printing than print-matrix
because the tabs will jump.
In practice, tables of 25 or less primes will probably not be distorted.
Copyright © 2016 Andrés Gómez Urquiza.
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.