Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Calculate prime factors for a given numer in a perl one-liner

by toolic (Bishop)
on Dec 15, 2010 at 17:56 UTC ( [id://877327]=note: print w/replies, xml ) Need Help??


in reply to Calculate prime factors for a given numer in a perl one-liner

It seems a little bit much to ask in my opinion of a one-liner, but what do you think? Part of my question is whether this is a good quiz or not.
In my opinion, this problem does not seem like a good candidate for a Perl one-liner solution. A good practical use of a one-liner is to do something quick and dirty on the command line which is too cumbersome with other tools (like grep). Anything more complicated is hardly worth it; just put the code in an file.

That being said, a good impractical (and fun) use of a one-liner is a Perl golf tournament.

  • Comment on Re: Calculate prime factors for a given numer in a perl one-liner

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-24 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found