BEGIN FOR number FROM 500 TO 599 DO IF number is_prime(number) THEN PRINT number END IF END FOR FUNCTION is_prime(n) IF n <= 1 THEN RETURN FALSE END IF FOR i FROM 2 TO √n DO IF n MOD i == 0 THEN RETURN FALSE END IF END FOR RETURN TRUE END FUNCTION