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):
All codes used can be found here: