alexcoder04 / prime-checker

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:GNU General Public License v3.0


Languages

Language:Lua 91.6%Language:Makefile 8.4%