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
function onlyOddDigPrimes(n) { | |
let purePrimes = []; | |
let purePrimeCounter = 0; | |
if (n < 2) return []; | |
for (let i = 2; i <= n; i++) { | |
if (isPurePrime(i)) { | |
purePrimeCounter++; |
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
0x885D1129e4A21cD833972bAD6E1Cf47D90b3FD4b |
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
function encrypt(text, n) { | |
if ( !text || text.length <= 1) return text; | |
let result = text.split(''); | |
for(let i = 0; i < n; i++) { | |
let odds = []; | |
for(let i = 0; i < result.length; i++) { | |
odds = odds.concat(result.splice(i, 1)); | |
} | |
result = result.concat(odds); | |
} |
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
function canCast(manaPool, ...manaCasts) { | |
let poolPoints = countColorlessMana(manaPool); | |
let castsPoints = countColorlessCastsMana(manaCasts); | |
let poolColored = toOnlyColoredMana(manaPool); | |
let castsColored = toFlatOnlyColoredMana(manaCasts); | |
let remaningCasts = castLetters(poolColored, castsColored); | |
if (remaningCasts.length > 0) { | |
return false; |
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
function canCast(aPool, ...aCasts) { | |
let pool = aPool.split(''); | |
let casts = toFlatArray(aCasts); | |
casts = castLetters(pool, casts); | |
if (!(stillHaveLettersMana(casts))) { | |
let requiredCastPoints = countCastPoints(casts); | |
let availableCastPoints = countPoolPoints(pool); |
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
#microsoft | |
Станислав Бабин | |
Когда Бог создавал женщину, | |
он заработался допоздна на | |
на шестой день. Ангел, | |
проходя мимо, сказал: | |
”Почему ты так долго над неи | |
работаешь?” | |
зацедгт_ | |
Самое ценное создание Бога, которое даёт... Еще |
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
#microsoft | |
2496.pdf - Adobe Acrob.t Reader ОС | |
усмотр Окно Справка | |
енты | |
169% | |
моедеппл | |
Сведения о регистрации в качестве страхователя в исполнительном орган( | |
социального страхования PoccHiick0ii Федерации | |
27 Регистрационный номер |
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
#Abbyy | |
Пополнение баланса | |
Расчет стоимости | |
Язык, на котором вы говорите: | |
Русский |^ | |
Язык, на котором говорит переводчик: ЕпдНзП | ж | |
Средняя стоимость минуты: 4.55 | |
Закзаз | |
О '5 минут - > 22.55 О ~10 минут -> 40.55 (10% сНзсоип!) О ~20 минут -> 725 (20% сПзсоип!) О Внести произвольную сумму | |
пополнить баланс с помощью РауРа! |
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
@chars = ("A".."Z").to_a | |
def increase_discharge(str, d=1) | |
if str[-d] == @chars.last | |
str[-d] = @chars.first | |
increase_discharge(str, d+1) | |
else | |
if str[-d].nil? | |
str.insert(0, @chars.first) | |
else |
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
@chars = ("A".."Z").to_a | |
def increase_discharge(str, d) | |
if str[-d] == @chars.last | |
str[-d] = @chars.first | |
increase_discharge(str, d+1) | |
else | |
if str[-d].nil? | |
str.insert(0, @chars.first) | |
else |
NewerOlder