Let \({\ell}\) be a nonnegative integer, and let a and b be two relatively prime integers such that 615 \({\ell}\) +3 ⩽ a < b. In this note, assuming the generalized Riemann hypothesis, we prove that there exists a prime p ∈ ( \({\ell}\) ab, ( \({\ell}\) +1)ab − a − b) that has exactly ( \({\ell}\) + 1) different expressions of the form p = ax + by, where x and y are nonnegative integers. This result generalizes, in particular, the recent work of Dai, Ding, and Wang, which confirms the 2020 conjecture of Ramírez Alfonsín and Skałba.