I am reading Douglas Coupland's new book (JPod) and I'm always a little frustrated by him. He seems to get the general vibe of nerds but is horribly off on details sometimes (in the first 50 pages, he makes reference to a "56k floppy disk"), which is agonizing. Anyway, he posits a math problem (I don't think this counts as a spoiler, I'll even omit the context and just pose the problem with page number, but if you really don't want to see anything about the book, don't read on, I guess.)
"Anyway, send me an email or even phone me. It's area code 604, and the number itself is a seven-digit prime which, when squared, is two digits short of being a factorial." p.50, hardcover edition.
Not having had much call to deal with primes in the last five years or so, I went to mathematica. Apparently the 78,499th through 664,579th primes are seven-digit, so no love there. So I went to a
factorial table. Factorials of course, quickly grow many zeroes in their tails. This is a problem since the square of any number with trailing zeroes is nonintegral if it has an odd number of trailing zeroes and is a power of ten, if it has an even nonzero number of trailing zeroes.
Since any seven-digit number squared is 13-14 digits, I figured I'd look at ones with 13-15 digits in their non-trailing zeroes. That way I could drop all the zeroes as a redundant digit, plus one. I included 21! because its least significant non-trailing zero digits are redundant.
18! = 6402373705728000
19! = 121645100408832000
20! = 2432902008176640000
21! = 51090942171709440000
None of these is the square of a prime.
Ideas?
posted by oxonium at 6:56 PM on May 27, 2006