Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TotalTechGeek/pictoprime
/ functions
Functions
19 in github.com/TotalTechGeek/pictoprime
⨍
Functions
19
◇
Types & classes
0
↓ 3 callers
Function
generateTest
* Tries to generate a test that is not in the tested set. * The algorithm is written rather naively, but this is fine (although inefficient) because
primeSearch.js:95
↓ 3 callers
Function
passes
* Keeps track of if a threshold has been passed, and returns true if it has. * @param {number} num
primeSearch.js:129
↓ 2 callers
Function
hash
* Used to simplify the set lookup (since the values getting stuck in there are quite large.) * @param {string} str * @returns {string}
primeSearch.js:44
↓ 2 callers
Function
isPossiblyPrime
(value)
primeSearch.js:279
↓ 2 callers
Function
replaceRandomCharacter
* Replaces one of the characters in the keyframe with a random character. * @param {string} keyFrame
primeSearch.js:75
↓ 2 callers
Function
spawnPromise
(file, args)
utils.js:12
↓ 1 callers
Function
almostSophieGermainMultipliers
* This generates a series of multipliers that are multiplied to the original prime to try to find a new prime.
primeSearch.js:151
↓ 1 callers
Function
delay
* @param {number} time
image.js:13
↓ 1 callers
Function
escapeAfter
* Keeps track of how many times it has been invoked to trigger an escape, this is for generateTests, * which is implemented naively. * @param {numbe
primeSearch.js:143
↓ 1 callers
Function
extractResult
* Extracts the prime value from the result returned from OpenSSL. * @param {string} str
primeSearch.js:174
↓ 1 callers
Function
findAlmostSophieGermain
* @param {string} val * @param {number} simultaneous * @returns {Promise<string>}
primeSearch.js:190
↓ 1 callers
Function
findIndexAllowed
* Finds a character that the algorithm is allowed to modify. * @param {string} keyFrame * @returns {number}
primeSearch.js:54
↓ 1 callers
Function
findPrime
(original, sophie = false)
primeSearch.js:214
↓ 1 callers
Function
generatePrimes
(count = 2000)
generatePrimes.js:14
↓ 1 callers
Function
generateTests
* Generates a collection of tests that are not in the tested set. * This is used so we may execute the tests in parallel. * * @param {Set<string>}
primeSearch.js:110
↓ 1 callers
Function
isNotDivisibleBySmallPrimes
(value)
primeSearch.js:284
↓ 1 callers
Function
main
()
index.js:32
↓ 1 callers
Function
randomInArray
* Selects a random element from an array. * @template T * @param {T[]} arr
primeSearch.js:67
↓ 1 callers
Function
transform
(file, { pixels = "7772299408", width = 32, contrast = 0.1 } = {})
image.js:23