Skip to content

Instantly share code, notes, and snippets.

View lyxal's full-sized avatar
🍔
It's a regional dialect

lyxal lyxal

🍔
It's a regional dialect
  • ‏ɹ‏‏ǝ‏‏p‏‏u‏‏n ‏u‏ʍ‏‏‏o‏‏p‏ ‏p‏‏u‏‏ɐ‏‏l ‏ǝ‏‏‏ɥ‏‏‏ʇ‏ • ‏ɐ‏‏ᴉ‏‏l‏‏ɐ‏‏ɹ‏‏ʇ‏‏s‏‏n‏‏∀‏
  • 10:51 (UTC +10:00)
View GitHub Profile
For Explicit: pxeger, user
For Implicit: ausername, pygamer0
Round 1
Q: https://codegolf.stackexchange.com/a/233192/78850
A: https://codegolf.stackexchange.com/a/233193/78850
Round 2
Q: https://codegolf.stackexchange.com/a/233199/78850
A: https://codegolf.stackexchange.com/a/233203/78850
Round 3
Q: https://codegolf.stackexchange.com/a/233206/78850
What are prime numbers?
Prime numbers are the building blocks of the number system. Every whole number can be written as a product of prime numbers. The smallest prime number is 2. The largest prime number is a really huge number called Graham’s number. Humans can’t write down Graham’s number.
A number is called prime if it is only divisible by 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, and 101.
But what about prime numbers less than 100?
element: +
name: add
arity: 2
description: adds the top two items on the stack
num-num: a + b
num-str: str(a) + b
str-num: a + str(b)
str-str: a + b
vectorise: yes
tests:
ɡᴦeetἰɴɡs!
ἰ hаve tᴑ ѕhare Ьɑd nеws ωitң ɣᴑu. ɑрргоxἰᴍateӏy a fеɯ mᴑᴨtңs аgo, ἰ gaἰnеd асᴄеѕs tօ ɣᴏᴜᴦ deviсeѕ, ωhἰϲң ɣоu usе fօг ἰᴨterɴеt Ƅrоաsinɡ. after thɑt, i hɑve stɑᴦted trаᴄкiᴨg ɣᴑᴜᴦ ἱɴtегᴨеt аctἱvἰtἰeѕ.
ңеᴦe ἱs tңе sequencе ᴏf еvents:
sօmе tἰmе аgᴑ, ἰ puᴦᴄңasеd ɑϲcesѕ tо eᴍaἰl ɑᴄсᴑᴜɴtѕ fгom hаᴄҡeгs (ɴоաаdɑүѕ, ἰt ἱs qᴜἰtе sἰmρle tо buү it ᴑᴨӏἱᴨe). i ңave еaѕily ᴍaᴨagеd tо lоg ἰᴨ tо үoᴜᴦ еᴍаἰӏ ɑᴄсᴏunt (<insert my email here>).
оɴe weеҡ later, ἰ hаvе ɑӏrеаdy ἰɴstɑӏӏed tңe tᴦoјan viгᴜs oᴨ thе oρеᴦatἰng sүstems of aӏӏ the devἱᴄеѕ үᴑᴜ usе tᴏ ɑᴄсeѕѕ ɣᴏᴜr еᴍаil. ἰt ɯɑѕ nоt hɑrd аt all (ѕiᴨce ɣou աeᴦe fоӏӏᴑաiᴨɡ tңe lἱɴᴋѕ fгoᴍ ɣᴑᴜr inЬᴏx emaἱӏs). ɑlӏ ἱnɡeɴἱᴏus ἰs sἱmρӏе. :)
@lyxal
lyxal / Woah.js
Created September 19, 2021 02:14
// Use Javascript to solve the following
/*
Jelly has compressed string literals, using the “...» delimiters. The way these work is by interpreting the ... as a base-250 integer, n, then repeatedly divmod-ing this integer until it reaches 0, building up the decompressed version as it goes by indexing into dictionaries and printable ASCII.
Jelly has 2 dictionaries, "short" and "long". "Short" contains 20453 words of 5 letters or shorter. "Long" contains 227845 words with 6 or more letters.
As the exact method is rather complicated, I'll work through how n is decompressed:
First, we divmod n by 3: n,m=(⌊n3⌋,n mod 3). We then call m the mode.
If the mode is 0:
Prompt: "Why is Lyxal so Lyxal?
After being spawned by interspacial imps, the Lyxal have been raiding civilization on and off since the dawn of time. A few hundred years ago Lyxal were even a major player in human culture, by far the most populous species that inhabited most of Earth. Some of their writing and art is still visible in many places, and they had plenty of technology at their disposal before they began to go extinct. Scientists are still trying to determine why Lyxal went extinct (perhaps climate change or over-hunting) but some think that it may be related to them being too successful or too dangerous for the humans to successfully keep them in check.
"
Do the Lyxal have moms?
Lyxal are hatched from eggs, but there is no other information available about how they reproduce.
def VAR_f(arg_stack, self, arity=-1, ctx=None):
parameters = []
parameters += wrapify(arg_stack, 1, ctx)
stack = parameters[::]
ctx.context_values.append(parameters[::])
ctx.stacks.append(stack)
ctx.inputs.append([parameters[::], 0])
this = VAR_f
Arn
Brachylog
CJam
Deorst (there's a lack of dedicated golfing languages starting with the letter E change my mind.)
ESMin
Flogscript
GS2
Husk
Implicit
Jelly

Let Ǎ, Ǐ, Ǒ be triads +, ÷, × be dyads A, I, O be monads 1, 2, 3 be nilads

Monadic Chaining

Pattern : curr =