1
0

rename statics/euler and sync b93 code with main repo

This commit is contained in:
Mike Schwörer 2017-11-20 17:38:54 +01:00
parent 0efeb3afeb
commit 69e3f51730
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
409 changed files with 745 additions and 509 deletions

View File

@ -4,9 +4,9 @@ return
[
'number' => 1,
'title' => 'Multiples of 3 and 5',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_001_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_001_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_001_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-001_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-001.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-001_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=001',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-001.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 2,
'title' => 'Even Fibonacci numbers',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_002_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_002_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_002_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-002_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-002.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-002_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=002',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-002.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 3,
'title' => 'Largest prime factor',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_003_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_003_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_003_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-003_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-003.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-003_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=003',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-003.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 4,
'title' => 'Largest palindrome product',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_004_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_004_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_004_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-004_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-004.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-004_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=004',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-004.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 5,
'title' => 'Smallest multiple',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_005_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_005_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_005_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-005_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-005.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-005_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=005',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-005.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 6,
'title' => 'Sum square difference',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_006_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_006_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_006_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-006_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-006.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-006_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=006',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-006.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 7,
'title' => '10001st prime',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_007_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_007_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_007_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-007_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-007.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-007_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=007',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-007.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -1,8 +1,8 @@
"v"00p54*:10p552**:20p*30p85+40p050p060p070p080p v
>150g60p>60g:20g%\20g/9+g"0"-*60g1+:60p50g-40g-#v_:80g`#v_$>50g1+:50p30g-#v_ 970p >70g0g.70g8-40g-#v_"=",80g.@
>150g60p>60g:20g%\20g/9+g"0"-*60g1+:60p50g-40g-#v_:80g`#v_$>50g1+:50p30g-#v_ 970p >70g0g86*+,70g8-40g-#v_"=",80g.@
^ < $ ^ <
>80p060p>60g50g+:2 0g%\20g /9+g"0"-60g9+0p6 0g1+:60p40g-#v_^
^ < < ^p07+1g07 <
>80p060p>60g50g+:2 0g%\20g /9+g"0"-60g9+0p60g1+ :60p40g-#v_^
^ < < ^p07+1g07 <
^ <

View File

@ -4,9 +4,9 @@ return
[
'number' => 8,
'title' => 'Largest product in a series',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_008_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_008_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_008_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-008_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-008.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-008_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=008',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-008.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 9,
'title' => 'Special Pythagorean triplet',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_009_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_009_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_009_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-009_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-009.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-009_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=009',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-009.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 10,
'title' => 'Summation of primes',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_010_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_010_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_010_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-010_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-010.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-010_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=010',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-010.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 11,
'title' => 'Largest product in a grid',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_011_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_011_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_011_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-011_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-011.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-011_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=011',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-011.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 12,
'title' => 'Highly divisible triangular number',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_012_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_012_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_012_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-012_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-012.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-012_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=012',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-012.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 13,
'title' => 'Large sum',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_013_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_013_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_013_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-013_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-013.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-013_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=013',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-013.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 14,
'title' => 'Longest Collatz sequence',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_014_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_014_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_014_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-014_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-014.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-014_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=014',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-014.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 15,
'title' => 'Lattice paths',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_015_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_015_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_015_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-015_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-015.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-015_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=015',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-015.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 16,
'title' => 'Power digit sum',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_016_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_016_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_016_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-016_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-016.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-016_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=016',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-016.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 17,
'title' => 'Number letter counts',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_017_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_017_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_017_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-017_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-017.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-017_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=017',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-017.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -1,4 +1,4 @@
$$>53* 00p00g1-20p010p>10g3*:20g1+g"0"-55+*\1+20g1+g"0"-+10g20g1+p10g1+:10p20g-1-#v_20g:1-20p010p#v_v
>53* 00p00g1-20p010p>10g3*:20g1+g"0"-55+*\1+20g1+g"0"-+10g20g1+p10g1+:10p20g-1-#v_20g:1-20p010p#v_v
75 ^ < < v
95 64 v <
17 47 82 > $v

View File

@ -4,9 +4,9 @@ return
[
'number' => 18,
'title' => 'Maximum path sum I',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_018_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_018_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_018_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-018_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-018.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-018_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=018',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-018.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 19,
'title' => 'Counting Sundays',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_019_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_019_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_019_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-019_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-019.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-019_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=019',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-019.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -1,5 +1,5 @@
v00 ... 00
v00 ... 01
v0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
v0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
>"d">1-:!#v_:03p013p"~I"+23p>23g"d"%1+23g"d"/g"0"-03g*13g+:55+%68 v
^ $# _^#!p32:-1g32p31/+55p/"d"g32+1%"d"g32+*<
>"~I"+33p0>33g"d"%1+33g"d"/g"0"-+ 33g:1-33p v

View File

@ -4,13 +4,13 @@ return
[
'number' => 20,
'title' => 'Factorial digit sum',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_020_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_020_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_020_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-020_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-020.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-020_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=020',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-020.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',
'abbreviated' => true,
'abbreviated' => false,
'steps' => 1546679,
'time' => 265,
'width' => 101,

View File

@ -4,10 +4,10 @@ v
. . .
. . . .
# ... #
v ># v# <
>"d"4*:10p55**00p00g>1-::20p0\2/>:20g\%#^_:30p+30g>1-:#^_$v
|: p+1/g01g02%g01g02<
v$$ p100<
>v ># v# <
>"d"4*:10p55**00p00g>1-::20p0\2/:|>:20g\%#^_:30p+30g>1-:#^_$v
|: p+1/g01g02%g01g02<
v$$ p100< >1 ^
>00g1-20p090p>20g10g%20g10g/1+g40p40g10g%40g10g/1+g50p 20g50g-#v_20g40g`!#v_20g." - ",,,40g.55+,v
|p02-1:g02 < < p09++g04g02g09<
@.g09<

View File

@ -4,9 +4,9 @@ return
[
'number' => 21,
'title' => 'Amicable numbers',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_021_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_021_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_021_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-021_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-021.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-021_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=021',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-021.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -1,7 +1,7 @@
> v // Calc ordered index > v
> v > v
MARY >"??IE"*++:20p00p>010p0 >:00gg"@"-:0`#^_$0>10g74**+10pv
PATRICIA > ^ ^ _v# -+66:+1<
LINDA v _^#!p00:-1g00pg000g01$< >v // Bubblesort it
LINDA v _^#!p00:-1g00pg000g01$< >v
BARBARA >20g30p> 040p> 040g1+g 040g2+g`|>40g:1+>60p70p66+:80p>:60g1+g\70g1+g80g60g1+v
ELIZABETH |`\-1g03 p04:+1g04< $<|\p08:-1:g08p+1g07g08p <
JENNIFER |-2p03-1:g03< // Sum the values ^<

View File

@ -4,9 +4,9 @@ return
[
'number' => 22,
'title' => 'Names scores',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_022_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_022_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_022_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-022_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-022.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-022_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=022',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-022.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -5,10 +5,10 @@ v
. . . .
# ... #
v ># v# <
>"d"4*:10p355***00p00g>1-::20p0\2/>:20g\%#^_:30p+30g>1-:#^_$v
|:p +1/g01g02%g01g02`g02<
v $p100< vp+1/g01+g05g04%g01+g05g04+2%2g+1/g01+g05g04%g01+<
>v ># v# <
>"d"4*:10p355***00p00g>1-::20p0\2/:|>:20g\%#^_:30p+30g>1-:#^_$v
|:p+1/g01g02% g01g02`g02< <
v $p100< > 1^ vp+1/g01+g05g04%g01+g05g04+2%2g+1/g01+g05g04%g01+<
$ >v >v >v >v v < g
>00g40p>40g1-:40p|>40g10g%40g10g/1+g2%|>40g1+50p>50g1-:50p|>50g10g%50g10g/1+g2%|>40g50g+00g`| 0
^ < ^ < $< >40g5^

View File

@ -4,9 +4,9 @@ return
[
'number' => 23,
'title' => 'Non-abundant sums',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_023_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_023_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_023_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-023_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-023.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-023_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=023',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-023.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -0,0 +1,8 @@
v0123456789
>"ddd"**1v
vp129p11-<
>v>v v < v < > v >\1-\vv p14+1g14<
>21g:1+|>|>21g0\>:1-:#^_v>*\:#^_$:| >31p 141p >31g41g*11g`!|
$ >$1 ^ > p68*v>$1^ |-"x" g0:\<\1<g14 <
@ > #^0#<#v0#,+ #<$ v> >1+\:| 1
^p12-1g12p11-*-1g14g13g11 <^\"x"\-"0"g0:>#- #1 #$ #< ^

View File

@ -4,9 +4,9 @@ return
[
'number' => 24,
'title' => 'Lexicographic permutations',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_024_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_024_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_024_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-024_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-024.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-024_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=024',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-024.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

View File

@ -4,9 +4,9 @@ return
[
'number' => 25,
'title' => '1000-digit Fibonacci number',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_025_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_025_code.txt'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_025_explanation.md'); },
'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-025_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-025.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-025_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=025',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-025.b93',
'url_github' => 'https://github.com/Mikescher/Project-Euler_Befunge',

Some files were not shown because too many files have changed in this diff Show More