I would like to take a number like 96, call squareRoot(96)
, and get a return of "4√6".
I have tried many different versions of
- generating a list of the prime factors
- finding the perfect divisors
- using recursive implementations
- iterative implementations
- HashMaps
- lists
but nothing seems to work. It is driving me crazy! I can provide the functions I wrote to find the factors, but I don't think they are particularly complicated.