Concatenation of numbers preserves divisibility, that is if \(a_1,\dots,a_n\) are all divisible by d, then their concatenation \(a_1a_2\dots a_n\) is also divisible by d.

"Really excited that YouTube gave me the first 90 seconds of this year's Rewind to explain the volume formulas for higher dimensional spheres." - @3blue1brown@twitter.com
twitter.com/3blue1brown/status

I left this running overnight and it still hasn't output 229.

This version is cheaty:

++.+.++.++.++++.++.++++.++.++++.++++++.++.++++++.++++.++.++++.++++++.++++++.++.++++++.++++.++.++++++.++++.++++++.++++++++.++++.++.++++.++.++++.++++++++++++++.++++.++++++.++.++++++++++.++.++++++.++++++.++++.++++++.++++++.++.++++++++++.++.++++.++.++++++++++++.++++++++++++.++++.++.++++.++++++.++.++++++++++.

I wanted to write a prime generator, but all the popular languages already have optimised ones I can't compete with.

++[>++<[->>+>+<<<]>>>[-<<<+>>>]<<[->->+<<]>>[-<<+>>]<[[>[->+>+>+<<<]>>>[-<<<+>>>]<[<->[-<->]]<+[<<<[->>+>>+<<<<]>>>>[-<<<<+>>>>]<-]<<->-<]>[->+>+>+<<<]>>>[-<<<+>>>]<[<->[-<->]]<+[<<<[-]<[->+>+<<]>>[-<<+>>]<->>>>-<-]<[-]<<+<[->>+>+<<<]>>>[-<<<+>>>]<<[->->+<<]>>[-<<+>>]<]<[-]>>>>+[<<<<<.>>>>>-]<<<<<+]

commented version: gist.github.com/olligobber/044

Now I have a program that sorts a 0-terminated list of bytes.

,[<<[[>>[->+>>+>>+<<<<<]>>>>>[-<<<<<+>>>>>]<<<<[>>-<<[->>-<<]]>>+[<<<<<[->>+<<]+>->+>>>-]<<<<<->>-<+<]>>[-<<+>>]<[-<+>>+<]<<<]>>[>>],]<<[.<<]

Commented version: gist.github.com/olligobber/8c5

I wrote a program that reads in pairs of bytes and outputs the smallest byte followed by the largest byte. In the best language ever.

+[-,>,<[>[->>+>+>+<<<<]>>>>[-<<<<+>>>>]<<[>-<
[->-<]]>+[<<<<[->+<]+>+>->>-]<<<<->->+<<]>>.[
-<+>]<.[-]<+]

This says something about the other things I have to do today.

Here's a fun puzzle: place the numbers 1-9 in each square such that each row and column contains each number exactly once, and so that there is a solid dot between adjacent squares if one number is double the other, and there is a circle between squares if the numbers are consecutive, and every edge that could have some marking does.

olligobber boosted

I've only kept facebook (only messenger) around because it's too much hassle to convert friends and family to signal.

Today, facebook made it a pain in the arse to help my father troubleshoot a networking issue, by blocking a *private* message from me containing a local IP address for "violating their community standards"

It's looking like less of a hassle to convert people to other platforms every day.

I made a regex to match all multiples of 7, but it was >10,000 characters so grep couldn't handle it.

The python function that complains about the number of arguments no matter how many arguments you give it:
`f = lambda x: f(x,x)`

olligobber boosted

Hey #Fediverse. When you post pictures, please please please with puppies on top fill in that description box for the visually impaired. You will be helping us out tremendously. We want to enjoy your pictures as much as others do. You don't have to write a novel, but just fill in some details.

Thanks with much love:
A Blind Dude

olligobber boosted

This is fun! typing game! My PB so far is 36, what's yours?

texnique.xyz/

λx.x(λxyz.xz(yz))(λxy.x) is the best combinator.

olligobber boosted

**i have updated this post with the developer’s correct name** Hey just found out about this cool app called Emergency Chat! It’s on App Store and google play, and is made specifically for when you’ve gone into a nonverbal anxiety attack. It was made by Seph “Persephone” De Busser, an autistic computer science student. You just open it, hand someone your phone, it shows this cool message and then you can communicate via the chat. It’s like texting kinda but you’re both on the same phone. Super handy, right? You can even customize the alert message. Download it if you think it’d be helpful 😊

"I declare you husband and wife" -->
"I declare you spouse and spouse" -->
"I declare you spice"

Show more
Mathstodon

A Mastodon instance for maths people. The kind of people who make \(\pi z^2 \times a\) jokes. Use \( and \) for inline LaTeX, and \[ and \] for display mode.