Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Elegantly map fizz to buzz

by oiskuu (Hermit)
on May 18, 2016 at 18:06 UTC ( [id://1163361]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Elegantly map fizz to buzz
in thread Elegantly map fizz to buzz

I suppose it would've been sensible to include use bigint; in my examples. (And make use of Math::BigInt::blcm.)

print fn( 1e75, 3, 5, 7, 74017, 74027, 74047, 74077 );;

All contributions are equally welcome, of course.

Update. using bigint:

print fk2( 1e75, 3, 5, 7, 74017, 74027, 74047, 74077 );; 2714409193835116782309092860748312946665048449396007497681808465165668 +014761062261823426471676870303814322114698720811164640573956951947124 +37887594397

Replies are listed 'Best First'.
Re^5: Elegantly map fizz to buzz
by BrowserUk (Patriarch) on May 18, 2016 at 18:25 UTC
    I suppose it would've been sensible to include use bigint;

    Wouldn't help very much with 1e75:

    Range iterator outside integer range at ...

    From this line of your code above:

    } 1 .. $max

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found