Emirp primes
For better performance, build the lazy list using module Math::Primesieve
, not the built-in, then display results based on parameters passed in. The default is to display an array slice starting and stopping at the given indices. Alternately, ask for all values between two endpoints.
Run with passed parameters: 1 20
('slice' is the default. you could pass it in, but it isn't necessary.)
Run with passed parameters: 7700 8000 values
Run with passed parameter: 10000
Last updated