Programming resources for young people and teachers - and myself.
isPrime(number) returns True or False depending on whether number is prime or not
primeSieve(max) returns all the prime numbers up until max
encrypt("text") returns the encryption of text
decrypt("- . ... -") returns the decryption of - . ... -
encrypt("text", 2) returns the encryption of text with a shift of 2
decrypt("vgzv", 2) returns the decryption of vgzv with a shift of 2
encrypt("text", "FVGZJAYIRQNWHMBSLXOECUTDPK") returns the encryption of text with a key of FVGZJAYIRQNWHMBSLXOECUTDPK
decrypt("ejde", "FVGZJAYIRQNWHMBSLXOECUTDPK") returns the decryption of ejde with a key of FVGZJAYIRQNWHMBSLXOECUTDPK