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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
"v"00p54*:10p552**:20p*30p85+40p050p060p070p080p v "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_^ >80p060p>60g50g+:2 0g%\20g /9+g"0"-60g9+0p60g1+ :60p40g-#v_^
^ < < ^p07+1g07 < ^ < < ^p07+1g07 <
^ < ^ <

View File

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

View File

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

View File

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

View File

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

View File

@ -7,16 +7,16 @@
v p03+1g03 p04+1g04 p +3/g01\%g01:g04 g03 < v p03+1g03 p04+1g04 p +3/g01\%g01:g04 g03 <
>"d"55+*:10p3"2"*:20p*00p230p" ":03p13p v >130p040p > 30g:10g%\10g/3+g" "- 00g30g` !#v_ | >"d"55+*:10p3"2"*:20p*00p230p" ":03p13p v >130p040p > 30g:10g%\10g/3+g" "- 00g30g` !#v_ |
v < _^#`g03g00 <^ p03+1g03 < v < _^#`g03g00 <^ p03+1g03 <
> "X" 30g:10g%\10g/3+p30g >30g+ : 00g\` #v_$>30g1+:30p:10g%\10g/3+g" "- | > "X" 30g:10g%\10g/3+p30g >30g+ : 00g\` #v_$>30g1+:30p:10g%\10g/3+g" "- |
^p+3/g01\%g01:\" ":< ^ < ^p+3/g01\%g01:\" ":< ^ <
v +1$< v +1$<
>:1+2/>:01p31p111p0>::10g%\10g/3+g::*01g`#v_121p>:31g\% !#v_11g21g*11p31g1-| >:1+2/>:01p31p111p0>::10g%\10g/3+g::*01g`#v_121p>:31g\% !#v_11g21g*11p31g1-|
v < ^p13/\g13:p12+1g12< v < ^p13/\g13:p12+1g12<
v < vp21<*2g11$$<^g11$$ < v < vp21<*2g11$$<^g11$$ <
>2 212p222p >:2%| >12g22g*"d"5*` #v_1+ 1v >2 212p222p >:2%| >12g22g*"d"5*` #v_1+ 1v
| < 0+1$< | < 0+1$<
>:1+ >:01p31p111p0>::10g%\10g/3+g::*01g`#v_121p>:31g\% !#v_11g21g*11p31g1-| >:1+ >:01p31p111p0>::10g%\10g/3+g::*01g`#v_121p>:31g\% !#v_11g21g*11p31g1-|
# v < v ^p13/\g13:p12+1g12< # v < v ^p13/\g13:p12+1g12<
^p22<*2g11$$<^g11$$ < ^p22<*2g11$$<^g11$$ <
>$$:1+*2/.@ >$$:1+*2/.@
^ $p05-1g04< ^ $p05-1g04<

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
v v
000000000000000000000 000000000000000000000
000000000000000000000 000000000000000000000
000000000000000000000 000000000000000000000
000000000000000000000 000000000000000000000
@ -20,8 +20,8 @@ v
000000000000000000000 000000000000000000000
000000000000000000000 000000000000000000000
000000000000000000000 > v 000000000000000000000 > v
>v >00g1-10gg00g10g1-g+00g10gpv >v >00g1-10gg00g10g1-g+00g10gpv
>100p110p> 00g492*+10g-*|>00g392*+`#^_>00g1-10g1-*| vp01+1g01p00-1g00< >100p110p> 00g492*+10g-*|>00g392*+`#^_>00g1-10g1-*| vp01+1g01p00-1g00<
^p011p00+g01g00< >100g10gp ^ ^p011p00+g01g00< >100g10gp ^
|! `+2*58+g00g01 < |! `+2*58+g00g01 <
@.g:*73< @.g:*73<

View File

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

View File

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

View File

@ -6,10 +6,10 @@ $ v-1 < v-1 <
>54*>:::1g"0"-\1p#^_54*>:::2g"0"-\2p| >54*>:::1g"0"-\1p#^_54*>:::2g"0"-\2p|
v **25"d" 0 $$< v **25"d" 0 $$<
v < v <
v $< >:55+/2g\55+% v v $< >:55+/2g\55+% v
: >:54*`| >"d"/1g70 v : >:54*`| >"d"/1g70 v
>0\>:!#v_:"d"\`| ^0g1< >:"d"%!| v < >0\>:!#v_:"d"\`| ^0g1< >:"d"%!| v <
v < >:"}"8*-#^_$380v>:"d"/1g\ "d"%v v < >:"}"8*-#^_$380v>:"d"/1g\ "d"%v
^ < <\3\7< ^ < <\3\7<
>+# \:# _+ \ 1- :| >+# \:# _+ \ 1- :|
@.+_ #! #:\ #+< @.+_ #! #:\ #+<

View File

@ -4,9 +4,9 @@ return
[ [
'number' => 17, 'number' => 17,
'title' => 'Number letter counts', 'title' => 'Number letter counts',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_017_description.md'); }, 'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-017_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_017_code.txt'); }, 'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-017.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_017_explanation.md'); }, 'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-017_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=017', 'url_euler' => 'http://projecteuler.net/problem=017',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-017.b93', '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', '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 75 ^ < < v
95 64 v < 95 64 v <
17 47 82 > $v 17 47 82 > $v

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,9 +4,9 @@ return
[ [
'number' => 21, 'number' => 21,
'title' => 'Amicable numbers', 'title' => 'Amicable numbers',
'description' => function(){ return file_get_contents(__DIR__ . '/euler_021_description.md'); }, 'description' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-021_description.md'); },
'code' => function(){ return file_get_contents(__DIR__ . '/euler_021_code.txt'); }, 'code' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-021.b93'); },
'explanation' => function(){ return file_get_contents(__DIR__ . '/euler_021_explanation.md'); }, 'explanation' => function(){ return file_get_contents(__DIR__ . '/Euler_Problem-021_explanation.md'); },
'url_euler' => 'http://projecteuler.net/problem=021', 'url_euler' => 'http://projecteuler.net/problem=021',
'url_raw' => 'https://raw.githubusercontent.com/Mikescher/Project-Euler_Befunge/master/processed/Euler_Problem-021.b93', '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', '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 MARY >"??IE"*++:20p00p>010p0 >:00gg"@"-:0`#^_$0>10g74**+10pv
PATRICIA > ^ ^ _v# -+66:+1< 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 BARBARA >20g30p> 040p> 040g1+g 040g2+g`|>40g:1+>60p70p66+:80p>:60g1+g\70g1+g80g60g1+v
ELIZABETH |`\-1g03 p04:+1g04< $<|\p08:-1:g08p+1g07g08p < ELIZABETH |`\-1g03 p04:+1g04< $<|\p08:-1:g08p+1g07g08p <
JENNIFER |-2p03-1:g03< // Sum the values ^< JENNIFER |-2p03-1:g03< // Sum the values ^<

View File

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

View File

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

View File

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

View File

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