in reply to challenge: OEIS A073015 serie
Without using a bigint module, you can't generate much of the series. I suspect correct Perl 6 solutions would be really easy.
use bigint; my $f=3; for (1..12) { $f = ($f-1)**2 if $_>1; say $f } # Faster: replace bigint with Math::GMP qw/:constant/;
I admit I find code golf to be tiresome, and prefer readable and efficient solutions.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: challenge: OEIS A073015 serie
by Laurent_R (Canon) on Dec 18, 2015 at 23:11 UTC | |
Re^2: challenge: OEIS A073015 serie
by Anonymous Monk on Dec 18, 2015 at 17:10 UTC |
In Section
Seekers of Perl Wisdom