Click the green flag and watch this marvelous program find the solution to a math problem. Run in Turbo Mode for the quickest results. Click "See inside" to see the problem and a brief explanation of what some of the scripts do (or, if you're too lazy, read the description provided in the notes).
One of my friends challenged me to find the solution to a math problem that was particularly difficult. I'm not a mathematician by any means, but I'm also not one to back down from a challenge, so I created this program to find the solution for me, and GOODNESS, was it a painful process. I had some assistance from my older brother who helped me fix the bugs in my code. The prime numbers 1487, 4187, and 8147 form a sequence where adding 3330 results in the next term of the sequence. They're also all permutations of each other. There's one other sequence that has the same property, and I was tasked with finding that sequence (more specifically, finding the 12-digit number formed by concatenating the terms in that sequence). There was probably a way to do that using pencil and paper, but because I'm more of a programmer than a mathematician, I took this approach. Most of this was programmed between the hours of 11:00 PM and 4:00 AM, while I was fueled purely by sugar, caffeine, and peppy music. Because of this, the names of my lists and variables do not make any sense, as you can tell by looking into the project. Favorites: "Bob," "effoC," and "Pants." (Unfortunately Pants wasn't actually used in the program...I just kept it because the name was funny.)