This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18,1,0,161,255,137,254,252,14,95,165,33,181,168,2,188 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ORDERED_ENGLISH = [c for c in "ETAOINSHRDLCUMWFGYPBVKJXQZ"] | |
# Dict mapping cypher letter to decrypted letter. Was empty in the beginning. | |
# Built up piece by piece, first by finding the H between T's and E's to create the | |
# words "the", "then", "them", "their". Confirmed "PYH" -> "THE". | |
# Noticed garbled form of the word "sincerity" in the middle of the text. Added | |
# mappings to fix it. Confirmed "AO" -> "RI". | |
# Text started to take shape. Noticed lots of garbled "of"s across the text. | |
# Added "L" -> "O". Also added "Z" -> "W" to fix "whatever". | |
known = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Go implementation of Euler's product formula to find for the totient function (aka. phi function) | |
* https://en.wikipedia.org/wiki/Euler's_totient_function#Euler.27s_product_formula | |
*/ | |
package main | |
import ( | |
"fmt" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fcount = 0; | |
function setup() { | |
createCanvas(400, 400); | |
} | |
function draw() { | |
background(0); | |
noStroke(); | |
smooth(); |
OlderNewer