for (var i=6, I=Math.sqrt(x)+1; x>1 && i<=I; i+=6) {
    x = pushPrimeExponentialTo$(a, x, i-1);
    x = pushPrimeExponentialTo$(a, x, i+1);
  }