Skip to content

Commit f90df37

Browse files
committed
Remove expected results from Euler problem docs
The people at the Euler Project discourage the publication of the results as it detracts from the competition.
1 parent c266ada commit f90df37

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+0
-152
lines changed

categories/euler/prob001-cspencer.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
1414
Find the sum of all the multiples of 3 or 5 below 1000.
1515
16-
Expected answer: 233168
17-
1816
=end pod
1917

2018
(1..^1000).grep({ ! ($^a % 3 and $^a % 5) }).reduce({ $^a + $^b }).say;

categories/euler/prob001-eric256.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
1414
Find the sum of all the multiples of 3 or 5 below 1000.
1515
16-
Expected answer: 233168
17-
1816
=end pod
1917

2018
my $sum;

categories/euler/prob001-grondilu.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
1414
Find the sum of all the multiples of 3 or 5 below 1000.
1515
16-
Expected answer: 233168
17-
1816
=end pod
1917

2018
say [+] grep * %% (3|5), ^1000;

categories/euler/prob001-hexmode.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
1414
Find the sum of all the multiples of 3 or 5 below 1000.
1515
16-
Expected answer: 233168
17-
1816
=end pod
1917

2018
say [+] gather {

categories/euler/prob001-unobe.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
1414
Find the sum of all the multiples of 3 or 5 below 1000.
1515
16-
Expected answer: 233168
17-
1816
=end pod
1917

2018
say [+] (1..^1000).grep: { !($_ % (3&5)) };

categories/euler/prob002-eric256.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
By considering the terms in the Fibonacci sequence whose values do not
1717
exceed four million, find the sum of the even-valued terms.
1818
19-
Expected value: 4613732
20-
2119
=end pod
2220

2321
my $term = 1;

categories/euler/prob002-gerdr.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
By considering the terms in the Fibonacci sequence whose values do not
1717
exceed four million, find the sum of the even-valued terms.
1818
19-
Expected value: 4613732
20-
2119
=end pod
2220

2321
say [+] grep * %% 2, (1, 1, *+* ...^ * > 4_000_000);

categories/euler/prob002-hexmode.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
By considering the terms in the Fibonacci sequence whose values do not
1717
exceed four million, find the sum of the even-valued terms.
1818
19-
Expected value: 4613732
20-
2119
=end pod
2220

2321
# code exposes a bug in r34733 rakudo, but works in pugs

categories/euler/prob003-eric256.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
1313
What is the largest prime factor of the number 600851475143 ?
1414
15-
Expected result: 6857
16-
1715
=end pod
1816

1917
sub is_prime ($num) {

categories/euler/prob003-gerdr.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
1313
What is the largest prime factor of the number 600851475143 ?
1414
15-
Expected result: 6857
16-
1715
=end pod
1816

1917
sub largest-prime-factor($n is copy) {

0 commit comments

Comments
 (0)