square « biginteger « Java Data Type Q&A





1. Check if BigInteger is not a perfect square    stackoverflow.com

I have a BigInteger value, let's say it is 282 and is inside the variable x. I now want to write a while loop that states:

while b2 isn't a perfect square:
 ...