<p>You are given <code>nums</code>, an array of positive integers of size <code>2 * n</code>. You must perform <code>n</code> operations on this array.</p>
<p>In the <code>i<sup>th</sup></code> operation <strong>(1-indexed)</strong>, you will:</p>
<ul>
<li>Choose two elements, <code>x</code> and <code>y</code>.</li>
<li>Receive a score of <code>i * gcd(x, y)</code>.</li>
<li>Remove <code>x</code> and <code>y</code> from <code>nums</code>.</li>
</ul>
<p>Return <em>the maximum score you can receive after performing </em><code>n</code><em> operations.</em></p>
<p>The function <code>gcd(x, y)</code> is the greatest common divisor of <code>x</code> and <code>y</code>.</p>