Explanation

For the integers greater than 24, note that 25, 26, 27, and 28 are not prime numbers, but 29 is a prime number, as are 31 and many other greater integers. Thus, 29 is the least prime number greater than 24, and Quantity A is 29. For the integers less than 28, note that 27, 26, 25, and 24 are not prime numbers, but 23 is a prime number, as are 19 and several other lesser integers. Thus, 23 is the greatest prime number less than 28, and Quantity B is 23.

Thus, the correct answer is Choice A, Quantity A is greater.

_________________

My GRE Resources

Free GRE resources | GRE Prep Club Quant Tests

If you find this post helpful, please press the kudos button to let me know !