code: function isPrime(scriptSig) {
      var minValue = 100;
      var maxValue = 999;
      var primes = getPrimes(maxValue);
  
      var scriptPubKey = '';
      for (var i = 0; i < primes.length; i++) {
          var commands = [
              'OP_DUP',
              'OP_SHA256',
              sha256(primes[i]),
              'OP_EQUAL',
          ];
          // If this is not the comparsion, OR with flag
          if (scriptPubKey) {
              commands.push('OP_ROT');
              commands.push('OP_BOOLOR');
          }
          commands.push('OP_SWAP');
  
          scriptPubKey += commands.join(' ') + ' ';
      }
      var conclusion = [
          '0x' + minValue.toString(base),
          '0x' + maxValue.toString(base),
          'OP_WITHIN',
          'OP_BOOLAND',
          'OP_VERIFY'
      ];
  
      scriptPubKey += conclusion.join(' ');
      return unlock(scriptSig, scriptPubKey);
  }
docs: /*
  This function only unlocks if the user supplies a three-digit prime number.