| ▲ | IsTom 15 hours ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||
My favourite prime checking algorithm is that for n < 100 if it looks prime, it is prime. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | freehorse 13 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Up to 100 it is relatively simple, if you remove the even numbers, the multiples of 3 (summing up their digits recursively gives 3 6 or 9), and those that end at 5, you end up with 25 numbers out of which 22 (88%) are primes. If you further exclude 49 which you should remember is 7^2 from the multiplication table, and 77 that is obviously divisible by 7, you are left with 22/23 chance a number that passes these exclusion criteria is not 91 and hence it is a prime. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | throwaway81523 15 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Like the famous Grothendieck prime of course. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | floydian10 3 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
91 should be prime, ridiculous that it isn't | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | emaccumber 15 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
The annoying child in me will always remember correcting my freshman math teacher when he needed a prime number and wrote 91 on the chalkboard. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | GMoromisato 14 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Are there any numbers that don't look prime but are, in fact, prime? [Other than 2, I suppose.] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | ridiculous_fish 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Except 91. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | conradev 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This only works if you know multiplication tables which is not a given in America these days. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | 14 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| [deleted] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | wbl 9 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
57 | |||||||||||||||||||||||||||||||||||||||||||||||||||||