Procedure to Find Prime Numbers – Query Examples