The PM was Senior Wrangler, so at least as much of a mathmo as a computer scientist. Moreover he is odd in two ways: first, he is the product of the scholar-army-politician pipeline in Singapore, which is quite unparalleled; second, he is the son of Lee Kuan Yew.
But he mainly had a career as a military officer. He gets his social status from that, not from being a computer scientist.