First, completely working PDP-8 prime number generation