Post Reply 
an interesting problem
05-03-2015, 05:42 AM
Post: #16
RE: an interesting problem
(05-03-2015 03:10 AM)Paul Dale Wrote:  More realistically, by starting at the top of each list of six and stopping when we find a composite, we have to make fifteen primality checks.

By using the divisibilty rule by 7 we have to make 20 checks:

137 -1
173 11
317 17
371 35
713 65
731 71

139 -5
193 13
319 13
391 37
913 85
931 91

179 -1
197 5
719 53
791 77
917 77
971 95

379 19
397 25
739 55
793 73
937 79
973 91

But then the check needs only a little mental arithmetic.
By rearranging the numbers so that the first digit is last we have to make only 6 checks:

371 35
731 71
173 11
713 65
137 -1
317 17

391 37
931 91
193 13
913 85
139 -5
319 13

791 77
971 95
197 5
917 77
179 -1
719 53

793 73
973 91
397 25
937 79
379 19
739 55


Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
an interesting problem - Don Shepherd - 05-02-2015, 08:37 PM
RE: an interesting problem - Gerald H - 05-02-2015, 09:05 PM
RE: an interesting problem - Don Shepherd - 05-02-2015, 09:53 PM
RE: an interesting problem - TASP - 05-02-2015, 11:27 PM
RE: an interesting problem - Don Shepherd - 05-02-2015, 11:44 PM
RE: an interesting problem - RayAtHP - 05-03-2015, 12:01 AM
RE: an interesting problem - Don Shepherd - 05-03-2015, 12:33 AM
RE: an interesting problem - Don Shepherd - 05-03-2015, 01:50 AM
RE: an interesting problem - Paul Dale - 05-03-2015, 03:10 AM
RE: an interesting problem - Paul Dale - 05-03-2015, 05:07 AM
RE: an interesting problem - Paul Dale - 05-03-2015, 05:09 AM
RE: an interesting problem - Thomas Klemm - 05-03-2015 05:42 AM
RE: an interesting problem - Don Shepherd - 05-03-2015, 06:49 AM
RE: an interesting problem - Don Shepherd - 05-03-2015, 04:21 PM
RE: an interesting problem - Joe Horn - 05-04-2015, 02:23 PM



User(s) browsing this thread: 3 Guest(s)