The fundamental unit and class number one problem of real quadratic fields with prime discriminant