MCPcopy Create free account

hub / github.com/TotalTechGeek/pictoprime / functions

Functions19 in github.com/TotalTechGeek/pictoprime

↓ 3 callersFunctiongenerateTest
* 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 callersFunctionpasses
* Keeps track of if a threshold has been passed, and returns true if it has. * @param {number} num
primeSearch.js:129
↓ 2 callersFunctionhash
* 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 callersFunctionisPossiblyPrime
(value)
primeSearch.js:279
↓ 2 callersFunctionreplaceRandomCharacter
* Replaces one of the characters in the keyframe with a random character. * @param {string} keyFrame
primeSearch.js:75
↓ 2 callersFunctionspawnPromise
(file, args)
utils.js:12
↓ 1 callersFunctionalmostSophieGermainMultipliers
* This generates a series of multipliers that are multiplied to the original prime to try to find a new prime.
primeSearch.js:151
↓ 1 callersFunctiondelay
* @param {number} time
image.js:13
↓ 1 callersFunctionescapeAfter
* 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 callersFunctionextractResult
* Extracts the prime value from the result returned from OpenSSL. * @param {string} str
primeSearch.js:174
↓ 1 callersFunctionfindAlmostSophieGermain
* @param {string} val * @param {number} simultaneous * @returns {Promise<string>}
primeSearch.js:190
↓ 1 callersFunctionfindIndexAllowed
* Finds a character that the algorithm is allowed to modify. * @param {string} keyFrame * @returns {number}
primeSearch.js:54
↓ 1 callersFunctionfindPrime
(original, sophie = false)
primeSearch.js:214
↓ 1 callersFunctiongeneratePrimes
(count = 2000)
generatePrimes.js:14
↓ 1 callersFunctiongenerateTests
* 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 callersFunctionisNotDivisibleBySmallPrimes
(value)
primeSearch.js:284
↓ 1 callersFunctionmain
()
index.js:32
↓ 1 callersFunctionrandomInArray
* Selects a random element from an array. * @template T * @param {T[]} arr
primeSearch.js:67
↓ 1 callersFunctiontransform
(file, { pixels = "7772299408", width = 32, contrast = 0.1 } = {})
image.js:23