View Full Version : Request for script-made file.
jasong
09-08-2006, 03:49 PM
I like to do new things. My latest thing is to find numbers which look exactly the same in a mirror, whether you put the mirror above, below, to the left, or to the right, and are prime.
The only digits capable of this, when written "correctly," are 0,1, and 8, and because I'm looking for primes AND mirror images, the first and last digit has to be 1, since if the 1s digit is 0 or 8 the number is either one digit, or divisible by 2.
Could someone please make a script that generates these types of numbers? I know it's a crazy idea, but I like to do crazy things.
alpha
09-08-2006, 04:06 PM
Could someone please make a script that generates these types of numbers? I know it's a crazy idea, but I like to do crazy things.
Thats kind of contradictory. You mean you like getting other people to do crazy things for you? :)
Why not take a stab at Perl or something else that might be capable of this. You'll teach yourself a few things by doing it and then you can maybe post your findings for others. Someone else doing the work for you teaches you basically nothing unless you are going to analyse the source code.
jasong
09-08-2006, 04:09 PM
Thats kind of contradictory. You mean you like getting other people to do crazy things for you? :)
Why not take a stab at Perl or something else that might be capable of this. You'll teach yourself a few things by doing it and then you can maybe post your findings for others. Someone else doing the work for you teaches you basically nothing unless you are going to analyse the source code.
Do you think it would be hard? I attempted a C++ loop a few weeks ago, and failed miserably. Also, I'm not sure how one compiles code.
I guess I should actually READ the book my dad gave me on C++, lol.
I'll give it a shot.
alpha
09-08-2006, 06:45 PM
There are hundreds of tutorials out there for various languages. I think Perl would probably be a good place to start, as I mentioned before. It is freely available for most operating systems, so there isn't really any excuse. C++ isn't the ideal language for a beginner IMHO.
Because what you're looking at is mostly math, I think this would be pretty easy once you get your head around it.
Maybe if you look into this more and maybe write out an algorithm in english, then see if you can put that into code. I'm sure there are loads of people here that would be happy to help with a specific coding problem, rather than taking on the whole task for you.
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.