Click to reopen instructions.

This speed run combines three earlier assignments into one set of methods. The buttons below come in three groups: first the geometry formulas (everything from perimeterOfSquare through volumeOfCone), then the array loop idioms (countEvens through indexOfFirstBiggerThan), and finally the primes methods (isPrime through isSuperPrime).

For the geometry methods, all the arguments and return types are double and you may want the Math methods such as Math.sqrt and Math.pow, plus the variable Math.PI for a good approximation of π. And remember that just like you can call Math.sqrt you can also call methods you’ve already written. Whenever a geometry formula can be expressed in terms of a formula you have already implemented, your method should call the already-defined method rather than repeating the math — except where a problem says otherwise, the tests check for this, not just for the right answer. The same idea applies to the primes methods, though there it is just good advice.

Pro tip: when you click one of the method buttons, the name of the method is copied to your clipboard so you can paste it into your code, saving typing and avoiding spelling errors. If you get stuck on one method, move on and come back to it.

Put definitions here.

Revisions:

Test results show up here.

Errors