A very simple program to check if a number is prime on the TI-Nspire calculator.
Just checking all dividers until the square root, using the simple 6k ± 1
optimization method (wikipedia).
For pre-built .tns
-files, check out the
latest release and copy the
.tns
-file onto your calculator.
Running make clean build
in the project directory will create a prime-checker.tns
file
which can be copied onto the calculator
Depending on you exact model and settings, you may already have the built-in isPrime()
-method :)
- factorisation into primes