Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Spiraling integers

by ambrus (Abbot)
on Aug 28, 2005 at 09:50 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://487238]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found