A simple program for calculating a list of prime numbers under a given value, alongside my initial python code (which is less efficient)