title: BigInteger switchcase
body: <pre><code>   switch (n.mod(BigInteger.valueOf(8)))  {
      case 1:
      case 7:
          jacobi = BigInteger.valueOf(1);
          break;
      case 3:
      case 5:
         jacobi = BigInteger.valueOf(-1);
          break;}
  </code></pre>
  
  <p>I get "BigInt can't be converted to int". Switch also wants constant expressions, so I can't put BigInteger.valueOf(1), neither.</p>