With credits for ChatGPT which after several promts still coulnd’t make 100% functional code. But it gave me the broad idea of the code I could use. It’s simple, It’s elegant. And somehow it isn’t in the Qt codebase for as fas as I could find.
Category: Uncategorized
I am going to Mars
Or at least my name is. The Mars 2020-rover has a chip on board with the names of people who have signed up their name. Do you want your name to also go to mars? Fill in the form in this page and get your own boarding pass. https://mars.nasa.gov/layout/embed/send-your-name/mars2020/certificate/?cn=1
Multiplicative persistence
After watching this @numberphile video I wanted to give it a try. Then I came up with this piece if python code to try to find a possible 12 iteration sequence. Result: Just put the prime factors after each other and you have your initial number. You don’t have to search any further because 222222222222222222222222222222222222222222222222222222…
Calculating prime numbers on all your cores
I was playing a bit with OpenMP in GCC and decided to try something fun. Like calculating the first X number of prime numbers. You know… Numbers that are only dividable by one and itself and that are greater than one. So, 2 is prime. 2 is also the only even prime number because all…