Skip to main content
XXXX
   XX
    X
    X
    XXXXXXXX
 
 
    XXXXXX
XXXXX

 
 
XXXXXXXXXXXXXX
             X
             X
             X
             XXXXXXX
XXXXXXXXXXXX
            XXXXX

 
 
XXXXX   XXXXXX
     X X
      X
 
 
XXX
   X
  X
   XXXXXXXXXXX
 
 
       X
       X
XXXXXXX!XXX
       X  X
       XXXX

The path above overlaps in a place marked with !.
XXXX
   XX
    X
    X
    XXXXXXXX
 
    XXXXXX
XXXXX

 
XXXXXXXXXXXXXX
             X
             X
             X
             XXXXXXX
XXXXXXXXXXXX
            XXXXX

 
XXXXX   XXXXXX
     X X
      X
 
XXX
   X
  X
   XXXXXXXXXXX
 
       X
       X
XXXXXXX!XXX
       X  X
       XXXX

The path above overlaps in a place marked with !.
XXXX
   XX
    X
    X
    XXXXXXXX
 
    XXXXXX
XXXXX
 
XXXXXXXXXXXXXX
             X
             X
             X
             XXXXXXX
XXXXXXXXXXXX
            XXXXX
 
XXXXX   XXXXXX
     X X
      X
 
XXX
   X
  X
   XXXXXXXXXXX
 
       X
       X
XXXXXXX!XXX
       X  X
       XXXX

The path above overlaps in a place marked with !.
Added a convenient link for what the Ulam spiral is.
Source Link

You will be given a point (x,y) relative to the center of the Ulam spiralUlam spiral (the center being the point which represents one), and length z. The task is to check whether there exists a path from (0,0) to (x,y) of length z, assuming prime numbers are obstacles and each turn in path has an angle of 90 degrees. Path may not overlap with itself. (x,y) may not be a prime.

You will be given a point (x,y) relative to the center of the Ulam spiral (the point which represents one), and length z. The task is to check whether there exists a path from (0,0) to (x,y) of length z, assuming prime numbers are obstacles and each turn in path has an angle of 90 degrees. Path may not overlap with itself. (x,y) may not be a prime.

You will be given a point (x,y) relative to the center of the Ulam spiral (the center being the point which represents one), and length z. The task is to check whether there exists a path from (0,0) to (x,y) of length z, assuming prime numbers are obstacles and each turn in path has an angle of 90 degrees. Path may not overlap with itself. (x,y) may not be a prime.

Became Hot Network Question
Tweeted twitter.com/StackCodeGolf/status/1338317908846522368
added 28 characters in body
Source Link
Kamila Szewczyk
  • 12.6k
  • 1
  • 31
  • 61

You will be given a point (x,y) relative to the center of the Ulam spiral (the point which represents one), and length z. The task is to check whether there exists a path from (0,0) to (x,y) of length z, assuming prime numbers are obstacles and each turn in path has an angle of 90 degrees. Path may not overlap with itself. (x,y) may not be a prime.

You will be given a point (x,y) relative to the center of the Ulam spiral (the point which represents one), and length z. The task is to check whether there exists a path from (0,0) to (x,y) of length z, assuming prime numbers are obstacles and each turn in path has an angle of 90 degrees. Path may not overlap with itself.

You will be given a point (x,y) relative to the center of the Ulam spiral (the point which represents one), and length z. The task is to check whether there exists a path from (0,0) to (x,y) of length z, assuming prime numbers are obstacles and each turn in path has an angle of 90 degrees. Path may not overlap with itself. (x,y) may not be a prime.

Source Link
Kamila Szewczyk
  • 12.6k
  • 1
  • 31
  • 61
Loading