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 |