I was gonna say since we're both going to be in the northern US we'd be pretty close to each other but then I remembered the US is very wide and I'm actually closer to Seattle now than I would be in the Northeast :p
I've actually managed to create a weird hybrid thingy that uses Text's compiled HTML and extension manifest and stuff, but its uncompiled JS. It's really cool, I need to switch over to that as the extension source so I can start hacking it
Ooh umm...the return value of f() would have to be a function, possibly Proxy'd. So you can't make it a primitive, but you can simulate any other object with it.
I don't think there's any way to know ahead of time if the output will be called again
In fact I know there isn't because of halting problem
how does this sound for a better primality tester: def isprime(n):return (n>1 and n<4) or(not str(n**.5).endswith('.0')and n%6 in[5,1]and 0 not in[n%11,n%5,n%7])
@UndoneStudios /s It's not my goal to discourage you to work in these famous very hard problems, in fact I'd like to encourage you. All I was saying is no variant of your algorithm could work. But very different ones may. I'd encourage you to continue searching for answers but just be aware these are hard problems and many very smart people have been trying to solve them for decades. Maybe you will be lucky and find a new solution.
Maybe not. In ether case you might learn something new, and that should be your goal.
I can't find a article right now but all compression works by making some patterns shorter at the cost of making others longer. So if the data is truly random and has no patterns any compression algorithm will, on average, make it slighly longer. This is average though, of course you can shorten some random data if it happens to contain some pattern
Convert a string to RGB using HTML rules
code-golf color
Background
This challenge is inspired by this Stack Overflow question.
Given any string, HTML can convert it to a colour, using the below rules (from the answer to the linked question):
Replace all nonvalid hexadecimal characters with 0’...
Traditionally presents are kept secret in boxes wrapped in paper. Since the ice caps are melting Santa Claus has begun to investigate some ways they might make the whole gift wrapping operation a little more eco-friendly. The first thing they've decided to do is to put all presents in perfectly c...
Part of Code Golf Advent Calendar 2022 event. See the linked meta post for details.
Santa likes to sort his presents in a special way. He keeps "uninterleaving" the pile of presents into smaller sub-piles until each sub-pile is either full of toys or full of coal.
Your job is to, given a pile of...