diff --git a/CT.rb b/CT.rb index d523abe..2c49a9a 100644 --- a/CT.rb +++ b/CT.rb @@ -30,7 +30,7 @@ case ARGV[1] require 'terminal-table' files = Dir[ARGV[0]+"/**/*/desc.yml"] - files.sort + files.sort! entry = [] files.each do |file| yaml = YAML::load_file(file) diff --git a/ProjectEuler/034/desc.yml b/ProjectEuler/034/desc.yml index 7c414ef..95ca742 100644 --- a/ProjectEuler/034/desc.yml +++ b/ProjectEuler/034/desc.yml @@ -6,7 +6,7 @@ desc: | Find the sum of all numbers which are equal to the sum of the factorial of their digits. Note: as 1! = 1 and 2! = 2 are not sums they are not included. solution: Bruteforce -solutons: +solutions: solve.php: desc: Basic solution language: php diff --git a/ProjectEuler/035/desc.yml b/ProjectEuler/035/desc.yml new file mode 100644 index 0000000..58fc2dd --- /dev/null +++ b/ProjectEuler/035/desc.yml @@ -0,0 +1,11 @@ +title: How many circular primes are there below one million? +url: http://projecteuler.net/problem=35 + +desc: | + The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. + There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97. + How many circular primes are there below one million? +solution: Bruteforce +solutions: + + diff --git a/ProjectEuler/035/solve.php b/ProjectEuler/035/solve.php new file mode 100644 index 0000000..04ba96e --- /dev/null +++ b/ProjectEuler/035/solve.php @@ -0,0 +1,40 @@ +