title: Determining the pair of natural numbers that closest approximate a square while maintaining a specific area
body: <p>So, I'm trying to draw an HTML table as close to being a square as possible from a value passed in. For example, if the number passed in is 16, then the output would be 4x4. Since not all numbers have a whole square root, the output for a number like 12 would be 4x3 (not 1x12 or 2x6). The output for a prime number like 7 would be 7x1. Any suggestions? Thanks!</p>