Coder Social home page Coder Social logo

alexcoder04 / prime-checker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.48 MB

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

License: GNU General Public License v3.0

Makefile 8.36% Lua 91.64%
ti-nspire ti-nspire-calculators prime-numbers calculator lua math nspire primes nspired-lua

prime-checker's Introduction

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

prime-checker's People

Contributors

alexcoder04 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.