Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Spiraling integers

by ambrus (Abbot)
on Aug 28, 2005 at 09:50 UTC ( #487238=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    spiral =: 3 : 0
    >: (,~ y.) $ (i. *: y.) i.~ /: ,/ (-@>.&| , -@{:@*.@(1j_1&*)@j.)"0/~ (
    +i. y.) - -:<: y.
    )
    2!:55[0[ 1!:2&2 spiral 5".>{: ARGV
    
  2. or download this
    spiral =: - ]\ i.@:*: [`]`[} [: \: [: ,/ [: (>.&| , 12&o.@(1j_1&*)@j.)
    +"0/~ i. - -:@:<:
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://487238]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2019-02-21 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (109 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!