OptimusPrimeExtensions extension

on

Methods

coprimeWith(int number) bool

Available on int, provided by the OptimusPrimeExtensions extension

Check if this number is coprime with the argument number
factors() List<int>

Available on int, provided by the OptimusPrimeExtensions extension

isPrime() bool

Available on int, provided by the OptimusPrimeExtensions extension

Determine if the number is prime