mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2011-01-20, 03:34   #12
axn
 
axn's Avatar
 
Jun 2003

10011101111002 Posts
Default

Why does this entire discussion remind me of this?
axn is online now   Reply With Quote
Old 2011-01-20, 09:14   #13
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

33·5·7·11 Posts
Default

Can you tell us what kind of credit card it is? That is: Is it a MasterCard, Visa, Discover, etc.?

By using the link given, we can eliminate Diners Club and American Express since those only have 14 and 15 digits respectively but that only eliminates the ranges for the first 6 digits of 300xxx-305xxx, 34xxxx, and 36xxxx-38xxxx. But heh, every little bit helps. :-)

Last fiddled with by gd_barnes on 2011-01-20 at 09:18
gd_barnes is offline   Reply With Quote
Old 2011-01-20, 19:21   #14
lavalamp
 
lavalamp's Avatar
 
Oct 2007
Manchester, UK

5×271 Posts
Default

From 0000 0002 to 9999 9941, there are 1,767,467 possibilities (out of 5,761,455 primes less than 10^8) for the last 8 digits. It only took pari/gp 15 seconds to count 'em up.

However continuing with the same naïve method I used would take another year, and you can add a bit more time on again for Luhn algorithm check.

Based on some flaky maths that wouldn't stand up to any scrutiny whatsoever, I'm going to guestimate there are about 800 billion combinations.
lavalamp is offline   Reply With Quote
Old 2011-01-20, 20:06   #15
davar55
 
davar55's Avatar
 
May 2004
New York City

2·29·73 Posts
Default

Quote:
Originally Posted by ixfd64 View Post
Man, I could see the headlines already...

"Mathematician becomes victim of fraud after posting credit card riddle online"
Followup:

CRIMINALS CAUGHT BY MERSENNE POLICE SQUAD.

Details follow.
davar55 is offline   Reply With Quote
Old 2011-01-20, 20:08   #16
davar55
 
davar55's Avatar
 
May 2004
New York City

2·29·73 Posts
Default

Quote:
Originally Posted by axn View Post
Why does this entire discussion remind me of this?
That's wrenchingly funny !

Hits the mark !

davar55 is offline   Reply With Quote
Old 2011-01-20, 20:32   #17
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

1) if we check for primes upto and including 9999 we get:

Code:
(16:22)>a=0;forprime(x=1,9999,a=a+1);print(a);
1229
2) without checking if they are prime we get 1229*10000 or 12290000 combos at the 8 digits level

3) continuing to 16 digits we come with 1229000000000000 combos as an absolute maximum.
science_man_88 is offline   Reply With Quote
Old 2011-01-20, 21:32   #18
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
1) if we check for primes upto and including 9999 we get:

Code:
(16:22)>a=0;forprime(x=1,9999,a=a+1);print(a);
1229
2) without checking if they are prime we get 1229*10000 or 12290000 combos at the 8 digits level

3) continuing to 16 digits we come with 1229000000000000 combos as an absolute maximum.
4) trying to go from 16 digits this popped up:

Code:
(17:29)>a=0;forstep(x=10000000000000001,9999999999999999,2,if(isprime(x) && isprime(x%100000000) && isprime(x%10000),a=a+1));print(a);
0
Doh! That's 17 digits no wonder.

Last fiddled with by science_man_88 on 2011-01-20 at 21:36
science_man_88 is offline   Reply With Quote
Old 2011-01-20, 21:54   #19
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103×113 Posts
Default

Science_man, of you can't be bothered to even read up on the most elementary aspects of number theory, just STFU, will you?

Good grief, that was some unbelievably stupid shit there. I had to delete it simply to keep this from turning into another 100-post flamefest between you and Bob Silverman.
ewmayer is offline   Reply With Quote
Old 2011-01-20, 22:02   #20
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by ewmayer View Post
Science_man, of you can't be bothered to even read up on the most elementary aspects of number theory, just STFU, will you?

Good grief, that was some unbelievably stupid shit there. I had to delete it simply to keep this from turning into another 100-post flamefest between you and Bob Silverman.
Why do you think i made the thread I'm trying to learn it from ? I do have a resource I found and I wasn't speculating I was doing calculation based on the number of prime numbers less than 10,000 or the prime numbers with 4 digits as part of the puzzle is based off how many 8 digit primes have a last four digits that form a prime. Up to you what you delete.

Last fiddled with by science_man_88 on 2011-01-20 at 22:02
science_man_88 is offline   Reply With Quote
Old 2011-01-20, 22:13   #21
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103·113 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
Why do you think i made the thread I'm trying to learn it from ? I do have a resource I found
Your "resource" is to actually count the primes < 10000 (so far, so good, but a really dumb approach to the full-problem estimation), then multiply by 10000 to get an estimate of #primes < 10^8? I mean really...

"continuing to 16 digits we come with 1229000000000000 combos as an absolute maximum."


I don't know what kind of "resources" you are using, but even the first few paragraphs of the wikipedia entry for "prime number" alludes to the prime counting function.

Gah, why do I even bother...I just *had* to click "view post" instead of continuing to blissfully "ignore user".
ewmayer is offline   Reply With Quote
Old 2011-01-20, 22:26   #22
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by ewmayer View Post
Your "resource" is to actually count the primes < 10000 (so far, so good, but a really dumb approach to the full-problem estimation), then multiply by 10000 to get an estimate of #primes < 10^8? I mean really...

"continuing to 16 digits we come with 1229000000000000 combos as an absolute maximum."


I don't know what kind of "resources" you are using, but even the first few paragraphs of the wikipedia entry for "prime number" alludes to the prime counting function.

Gah, why do I even bother...I just *had* to click "view post" instead of continuing to blissfully "ignore user".
I was just saying as a maximum you can't have more than the number of 16 digit numbers that end in a 4 digit prime. maybe I should have said that instead of trying math?
science_man_88 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" wildrabbitt Miscellaneous Math 11 2015-03-06 08:17
AMD Announces Industry's First "Supercomputing" Server Graphics Card ET_ GPU Computing 23 2013-11-18 17:49
Speeding up double checking when first test returns "prime" Unregistered PrimeNet 16 2006-02-28 02:00
Oh noes! The "42nd Mersenne prime" isn't prime! ixfd64 Lounge 7 2005-04-03 19:27
Would Minimizing "iterations between results file" may reveal "is not prime" earlier? nitai1999 Software 7 2004-08-26 18:12

All times are UTC. The time now is 03:54.


Sat Jul 17 03:54:27 UTC 2021 up 50 days, 1:41, 1 user, load averages: 1.96, 1.91, 1.76

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.