prime rdy loop