Superfast Prime Number Generator for ImageJ

Here, I just present a quite fast prime number generator for ImageJ, that delivers about
200,000 primes / sec (ImageJ and FIJI).
The C++ version delivers up to 20 million primes/sec.

The code is available for both C++ and ImageJ/FIJI.

Here, the ImageJ/FIJI version:

PrimeLister (ImageJ).txt (1.9 KB)

The basic idea is explained in very detail here (2 short videos):

and

All codes used can be found here:

1 Like

Obviously the speed is with the ImageJ-macro language.
What about the speed with ImageJ’s native Java implementation?

Sorry, but there is no Java-version available, yet -

I just got in done in ImageJ and the “brute force” version is the one written in C++.