Completed TMA Q4, and code for prime number generation on Q5