Suppose I have a dimension formula (for a Lie algebra representation) given by
dima,b=(a+1)(b+1)(a+b+2)2. I now would like to find pairs (a,b) where dima,b=p2 for p a prime? What are some techniques for accomplishing this? Should I first filter out a list of primes using isprime
and then check possible pairs (a,b) for each prime p<N, say 1000.