# Function to check if a number is prime def is_prime(n): if n <= 1: return False for i in range(2, int(n**0.5) + 1): if n % i == 0: return False return True # Function to find all 3-digit prime numbers starting with 5 def find_primes_starting_with_5(): primes = [] for num in range(500, 600): if is_prime(num): primes.append(num) return primes # Main function to display the primes def main(): primes = find_primes_starting_with_5() for prime in primes: print(prime) # Run the main function if __name__ == "__main__": main()