If we take a positive integer \$n\$ and write out its factors. Someone can determine \$n\$ just from this list alone. In fact it is trivial to do this since the number is its own largest factor.

However if we take \$n\$ and write only the first half of its factors (factors that are smaller than or equal to \$\sqrt{n}\$), it becomes a lot more difficult to tell the original number from the list alone. In fact, it frequently becomes impossible to tell at all. For example both \$28\$ and \$16\$ give

\$
\begin{array}{ccc}
1 & 2 & 4
\end{array}
\$

as the first half of their factors (along with an infinite number of other solutions). So if you show this list to someone they cannot know for sure what your original number was.

But some special cases do have a single unique solution. For example

\$
\begin{array}{ccc}
1 & 2 & 3 & 5
\end{array}
\$

is unique to \$30\$. No other number has these as its smaller factors.

---

The goal of this challenge is to write a program or function which takes as input an integer \$n\$ and determines if the first half of its factors are unique or not.

Your output should be one of two consistent values, one corresponding to inputs that are unique and one to inputs that are not.

This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'") so answers will be scored in bytes with fewer bytes being the goal.

---

Test cases
----------

The first 120 truthy values are:

```
24 30 40 50 56 60 70 80 84 90 98 100 105 108 112 120 126 132 135 140 150 154 162 165 168 176 180 182 189 192 195 196 198 208 210 220 231 234 240 242 252 260 264 270 273 280 286 288 294 297 300 306 308 312 315 320 324 330 336 338 340 351 352 357 360 363 364 374 378 380 384 385 390 396 399 408 416 418 420 429 432 440 442 448 450 455 456 459 462 468 476 480 484 494 495 504 507 510 513 520 528 532 540 544 546 552 560 561 570 572 576 578 585 588 594 595 598 600 608 612

```

If you want more test cases I've written a reasonably fast generator (generates the first 500 in under 3 seconds on TIO).

[Try it online!](https://tio.run/##jVRNj9owEL3nV7zDHpJdkkKkXtAGVVVVqYd2pXKphJaVWRywYjtfjggSv710EkLWAdruIbE9eW8@3oyzZWXCpTwKlaWFQV4xKWLB1/jCDAvm3ICVoOXoBofAw3TqAC6@acM3BZNgdPToAaIZGPzu9TlNpaNAFGhE9F2la9opRBHGjuOIeU7BOmdPxbr1M8KPSt3y2MEbP5uU@MBuywvegshgULdb4IDw3mAW9YaoWwHTQ1JD5J0o@RWGfLnmYeLBrX1y5E88SnXLZPyTCb1Kd@@ofkHL84Bzqn@BxGmCJ3j0W8ICEwQBTpVp4jT1JyfFaP9MkSst8oqX/456CniGdhJRvwKuMrNHOBBrlVZ6jRpx2VethBaKZL/rVXBrLBFi6lk2IBbS8ALuDLVnmZtCsmWIe@TLcGA/IKNaKdTAOkJ@05rhQ4R8YGwk6LpSUs7nhCU3PczS@dcnV7Jiw0szV0zKr@zVpAWmePGsBg8Y/ZAA3Ubo3iJii9TIqbhaUf12RLwVQSOlLUKbMun4gMmbWFyWfOg3LS6UtLPbN3fFDneh7v48SbaDJuS1DBewUQtrevZfKE3oeWb@mgra4b11ulbFbaQUuuQ09EMpvZt6Weyamvk@Dy38qOjD6dfDsu8vyAqhDe5gWMLxcTxGd2WOv19jyTbl0X8K/wA "Haskell – Try It Online")

For falsy values I recommend you check everything under 50 not on this list, but in particular 12.