Skip to content

A simple program to check whether a number is prime on the TI-Nspire

License

Notifications You must be signed in to change notification settings

alexcoder04/prime-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prime-checker for TI-Nspire

A very simple program to check if a number is prime on the TI-Nspire calculator.

Method

Just checking all dividers until the square root, using the simple 6k ± 1 optimization method (wikipedia).

Installation

Relesases page

For pre-built .tns-files, check out the latest release and copy the .tns-file onto your calculator.

Compiling yourself

Requirements

Building

Running make clean build in the project directory will create a prime-checker.tns file which can be copied onto the calculator

Note

Depending on you exact model and settings, you may already have the built-in isPrime()-method :)

Features to be implemented in the future (maybe)

  • factorisation into primes