Quite adequate brute-force method, improved earlier algorithm for generating primes