Is it possible to make a constraint for an integer to say it can not be a (Perfect) square number?
I have:
square(Square):- N#>0, Square #= N*N.
How do I define notsquare(Notsquare):- ...
My first thought was to have P*P =Q*Q*Notsquare
and Remainder #>0, Remainder #= P rem Q.
But P and Q need to be able to be non integers so this didn't work.