I'm a programmer and software designer. I'm definitely not a mathematician and my maths is quite basic, so this is not the kind of place I feel comfortable in. :)

In order to win a bet with a friend of mine, who challenged me to generate a palindromic prime number, at least 1000 digits long and using only the digits 1 and 7 (yeah, we were a bit "fuzzy" that night), I wrote a horrible Java hack built around an instinctive and somewhat faulty conjecture... that is so crazy and pointless that would take a lot of time to explain.

I won the bet because I generated this stuff in about 10 minutes:


It is palindromic, it is 1199 digits long, and seems to be prime or, at least, Mathematica PrimeQ tells so, but I didn't test it with a deterministic method.

Actually, sometimes my program can generate numbers like that one in a snap, other times it just fails or hangs. I'm interested, out of idle curiosity, in knowing why it works (when it does) and if it uses some known feature of palindromic primes. Are you interested in, too? Can I open a topic?

If so, what tags should I use? I mean, there is no "curiosity", all of them seem pretty serious. Isn't it better to post right here, editing this topic?


2 Answers 2


Yeah. ${}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}$

  • $\begingroup$ What tags should I use? I mean, there is no "curiosity", all of them seem pretty serious. Isn't it better to post right here, editing this topic? $\endgroup$
    – gd1
    Dec 1, 2012 at 16:06
  • 3
    $\begingroup$ @gd1: You may want to use something about prime number, and perhaps recreational mathematics, and/or number theory. $\endgroup$
    – Asaf Karagila Mod
    Dec 1, 2012 at 16:28

Expanding on hjg, in maths everything is "curiosity", and unlike some other StackExchange sites there should be no compulsion for the math.stackexchange.com questions to be "practical, answerable questions based on actual problems that you face". (I struck out answerable because we still don't want open-ended questions.)

I note however that quote, which I went over to superuser.com to obtain, is currently in the faq!


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .