Checking if runtime can be improved by not squaring the root and instead checking its floor and ceil values to check if its an integer. (Note: runtime worsened by this, marginally)