
{"id":16027,"date":"2014-11-02T15:18:34","date_gmt":"2014-11-02T15:18:34","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=16027"},"modified":"2014-11-02T15:18:34","modified_gmt":"2014-11-02T15:18:34","slug":"how-to-write-a-program-to-solve-project-euler-problem-5","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/11\/02\/how-to-write-a-program-to-solve-project-euler-problem-5\/","title":{"rendered":"How to write a program to solve project euler problem 5 ?"},"content":{"rendered":"<pre>\n\/* This file is worked ( mostly copy and paste ) from from http:\/\/www.programminglogic.com\/solution-to-project-euler-5\/\nNotice that if the number is evenly divisible by all numbers from 11 to 20 it's also divisible by all numbers\nfrom 2 to 10.\n*\/\n\n#include &lt;stdio.h&gt;\n\nint main(){\nint i,j,counter;\nfor (i=10;i&lt;1000000000;i++){\ncounter=0;\nfor (j=11;j&lt;21;j++){\nif (i%j==0)\ncounter++;\n}\nif (counter==10){\nprintf(\"%d \\n\",i);\nbreak;\n}\n}\nreturn 0;\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/* This file is worked ( mostly copy and paste ) from from http:\/\/www.programminglogic.com\/solution-to-project-euler-5\/ Notice that if the number is evenly divisible by all numbers from 11 to 20 it&#8217;s also divisible by all numbers from 2 to 10. *\/ #include &lt;stdio.h&gt; int main(){ int i,j,counter; for (i=10;i&lt;1000000000;i++){ counter=0; for (j=11;j&lt;21;j++){ if (i%j==0) counter++; } &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2014\/11\/02\/how-to-write-a-program-to-solve-project-euler-problem-5\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to write a program to solve project euler problem 5 ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[735],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16027"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=16027"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16027\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=16027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=16027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=16027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}