Search the web
Sign In
New User? Sign Up
primenumbers · Prime numbers and primality testing
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
New puzzle? King moves for primes   Message List  
Reply | Forward Message #12947 of 21105 |
Dare suggest (new?) puzzle:

Take, say, 3x3 board with digits arranged e.g. in order:

1 2 3
4 5 6
7 8 9

Starting from any cell,
King (Chess King!) moves for primes.

How many primes can he (or you) find by rules:

King moves for any neighbor cell,
(* e.g. from cell with 5,
he can move to any of 8 other cells,
from cell with 1, he can go to cell with 2, 5, or 4 etc*)
then again for any neighbor cell (even returning back).

Each time digits contacenate to form
(finally - maximum after say 10 moves) a prime.

Then you may start from any other cell.

Ok, let me show examples
a) for 1-move version (two-digit primes) we have :
starting from 5, two primes: 53 and 59,
starting from 4, two primes: 41 and 41,
starting from 2, one prime : 23,
total 5 two-digit primes.
b) for 2-move version (three-digit primes) we have:
starting from 5, six primes: 541, 547, 521, 523, 563, 569, 587, etc

With increasing number of moves, the problem should be
solved by program.

Several Qs:
What is the maximal number 2-,3-,4-,....10-digit primes,
using the given start position?
What is the best start position (giving more primes).
What about larger board?

Go!
Zak










Sun Jul 13, 2003 2:35 pm

seidovzf
Offline Offline
Send Email Send Email

Forward
Message #12947 of 21105 |
Expand Messages Author Sort by Date

Dare suggest (new?) puzzle: Take, say, 3x3 board with digits arranged e.g. in order: 1 2 3 4 5 6 7 8 9 Starting from any cell, King (Chess King!) moves for...
Zak Seidov
seidovzf
Offline Send Email
Jul 13, 2003
2:35 pm

In a message dated 13/07/03 15:35:51 GMT Daylight Time, seidovzf@... ... Interesting idea, Zak. We could replace your 3rd Q with another: What about...
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 13, 2003
5:31 pm

Take the standard 3x3 position: 1 2 3 4 5 6 7 8 9 King's moves taking maximum three cells give the next primes: 2 3 5 7 = 4 ...
Zak Seidov
seidovzf
Offline Send Email
Jul 13, 2003
7:09 pm

[Zak Seidov] King's moves taking maximum three cells give the next primes: [Jon Perry] Why precisely is the question forcing a King? A Queen or Rook should...
Jon Perry
jon_perryuk
Offline Send Email
Jul 13, 2003
7:34 pm

I have programmed the 2x2 board version. The method used is exhaustive search, calling recursively (for increasing no. of moves) a simple "evaluate" procedure....
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 14, 2003
9:23 am

OK, Mike, you did a JOB, now i think that may be only distinct primes count, what do you think about this in your program - rejecting repeating primes, thanks,...
Zakir Seidov
seidovzf
Offline Send Email
Jul 14, 2003
1:49 pm

At 2x2 board, the number of n-digit numbers (after n-1 moves) is 4*3^(n-1), so according to Mike's calcs, the percentage of n-digit primes gradually decreases ...
Zak Seidov
seidovzf
Offline Send Email
Jul 15, 2003
5:46 pm

In a message dated 14/07/03 14:51:36 GMT Daylight Time, seidovzf@... ... What I think is: let's stick with the problem you originally defined. It's a...
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 14, 2003
3:31 pm

In a message dated 15/07/03 18:52:24 GMT Daylight Time, seidovzf@... ... Zak: I agree with your formula for the count of numbers. But where does 2187...
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 15, 2003
8:45 pm

Here's the relationship 3 ways - as a Matrix recursion, as an explicit formuula, and as a 3-term recursion. MATRIX VERSION: There are three kinds of squares -...
sleephound
Offline Send Email
Jul 15, 2003
11:25 pm

Are you sure that there are no misprints: ... a(-2)^N + b*(2+2sqrt(2))^N + c*(2-2sqrt(2))^N The values turn out to be a=1/2 b=17/4 + 3sqrt(2) c=17/4 - 3sqrt(2)...
Zak Seidov
seidovzf
Offline Send Email
Jul 16, 2003
3:06 pm

... There's a missing "*" between the "a" and the "(-2)". There's a fencepost problem about whether we count the number of moves the king makes or the number...
sleephound
Offline Send Email
Jul 16, 2003
6:00 pm

... seems to be b=17/4 + 5 sqrt(2) c=17/4 - 5 sqrt(2) ?? zak ... moves ... of...
Zak Seidov
seidovzf
Offline Send Email
Jul 16, 2003
6:28 pm

... Evaluating a*(-2)^N + b*(2+2sqrt(2))^N + c*(2-2sqrt(2))^N a=1/2 N Sleep's Zak's 0 9 9 1 40 56 2 200 264 3 952...
sleephound
Offline Send Email
Jul 16, 2003
8:11 pm

In a message dated 16/07/03 00:27:22 GMT Daylight Time, sleephound@... ... A perfect presented solution! (I had found that RECURSION by way of the...
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 16, 2003
9:13 am

yes, you are right, misteriously my Mma program kept giving 5s not 3s?? now at last i've found the error, thanks, zak ... __________________________________ Do...
Zakir Seidov
seidovzf
Offline Send Email
Jul 17, 2003
4:40 am

Numbers of N-move routes of chess king at three boards ... board 3x3 4x4 5x5 ... N=0 corresponds to starting cells. Mike and Sleep, ...
Zak Seidov
seidovzf
Offline Send Email
Jul 17, 2003
2:26 pm

I get the same values. For the 4x4 board the eigenvalues are 0 (5+3sqrt(5))/2 (5-3sqrt(5))/2 The eigenvalue of zero results in a two-term recursion that is...
sleephound
Offline Send Email
Jul 17, 2003
3:36 pm

On 16/07/03 I wrote:- ... After playing around with these factorisations a bit more today, I have found the right way to express them. Sit back and I will show...
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 19, 2003
7:02 pm

A final despatch from the programming front:- I have speeded up the program by a factor of about 30, by 3 independent tricks:- (a) If you distribute the...
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 20, 2003
4:13 pm

Mike, it's a real pity that your ... I don't think that none else can meet the challenge... Still, if you keep your results, can your present number of...
Zak Seidov
seidovzf
Offline Send Email
Jul 20, 2003
4:51 pm

... At this night i did it myself, and here are some results: i consider 3x3 board with figures 1,2,3,4,5,6,7,8,9 each in one cell, then (for a time being) not...
Zak Seidov
seidovzf
Offline Send Email
Jul 21, 2003
5:51 am

A novel 'call me Carlos' extension, which 3*3(*3) board produces the most primes where each square (cube) is itself a distinct prime? The obvious extension of...
Jon Perry
jon_perryuk
Offline Send Email
Jul 21, 2003
5:40 pm

... Hash: SHA1 ... Was the primality testing slowing down your program? Because there are only 900k 6-digit numbers (assuming no other restrictions placed on...
Décio Luiz Gazzoni...
decio@...
Send Email
Jul 20, 2003
5:35 pm

In a message dated 20/07/03 18:35:59 GMT Daylight Time, ... The primality test was indeed simply a 1-bit test in a bit-array of all odd primes (as you...
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 20, 2003
6:14 pm

In a message dated 21/07/03 06:52:46 GMT Daylight Time, seidovzf@... ... [snip] ... Nice work, Zak, and everything you posted seems to be correct. Your...
mikeoakes2@...
mikeoakes2
Offline Send Email
Jul 21, 2003
8:07 am

Mike and all, I have expansion in the direction of larger board but only for N=2 routes (that is concatenations of any two adjacent cells). Take MxM board with...
Zak Seidov
seidovzf
Offline Send Email
Jul 23, 2003
1:30 pm

Jon, here my initial results: Take 3x3 board with 9 first primes {2,3,5,7,11,13,17,19,23} each in one cell, then 2-move routes give minimal 6 primes (in 224 ...
Zakir Seidov
seidovzf
Offline Send Email
Jul 21, 2003
11:06 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help