Skip to content

Instantly share code, notes, and snippets.

View artificialstarlight's full-sized avatar

Nikos artificialstarlight

View GitHub Profile
@artificialstarlight
artificialstarlight / RSA.txt
Last active February 28, 2024 23:39
This is an implementation of a very simple version of RSA in TI-BASIC.
//remember to not type comments when typing the code into your calculator!
//This program is an implementation of the RSA algorithm, using small prime numbers, in TI-BASIC.
ClrHome
{2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97}->L1
Prompt X
Lbl A
randInt(1,25)->T
randInt(1,25)->W
@artificialstarlight
artificialstarlight / LS.txt
Last active December 30, 2018 19:43
This code outputs n numbers of the look and say sequence given an integer input. (FIXED)
DelVar L1 //deletes variables
DelVar L2
0->C //initialize count variable
Input “ENTER INTEGER “, N //gets input from user and stores it in the variable N
If N=0 //If N is 0, append 1 to list one and display it, and end the program
Then
{1}->L1
Disp L1
Stop
End