{"id":167,"date":"2013-01-26T10:00:13","date_gmt":"2013-01-26T09:00:13","guid":{"rendered":"http:\/\/fred151.net\/site\/?p=167"},"modified":"2021-03-30T14:48:03","modified_gmt":"2021-03-30T12:48:03","slug":"prime-numbers","status":"publish","type":"post","link":"https:\/\/fred151.net\/site\/2013\/01\/26\/prime-numbers\/","title":{"rendered":"Prime Numbers"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">&#8220;The Music of the Primes&#8221;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m ever fascinated about sequence numbers and prime numbers. So this is the why of this creation. This is my first program written in language C. All people know the power of prime numbers, they are still using in algorithms to crypt the comunications. A small definition &#8220;A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself&#8221; that enclosed a powerful magic. the number 2 is the only even prime numbers by definition. I suggest to you a book: Marcus Du Sautoy, &#8220;The Music of the Primes&#8221;, Fourth Estate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How works?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Prime Numbers has a simple algorithm that can check all divisors of a number n minor of square root of n, the algorithm don&#8217;t check the even numbers. It has a good execution speed. The program was tested on 64 bit architectures. The max range depends of the type of machine you use, in the most cases under UNIX the max range value is 18.446.744.073.709.551.615.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use it?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Prime Numbers must be executed by terminal and need some parameters to run good.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Usage: prime_number -f [n] -t [n] -o [file]\nOptions:\n-f Start from [number]\n-t Finish to [number]\n-o Write on file\n\n-h --help Display this information\n-v Active verbose mode, shows prime numbers, else shows a percent<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">An Example, the prime numbers between 0 and 100:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ .\/prime_number -f 2 -t 100 -o primi.txt<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Versions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Prime Numbers v1.2 (x64)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Data: 12\/12\/2010<br>Features:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Compiled on Ubuntu 10.10 x64 bit<br>Parametres by command line<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background\" href=\"http:\/\/fred151.net\/getfile.php?name=prime-numbers_v1.2.zip\" style=\"background-color:#0069d9\">Prime Numbers &#8211; Windows x86<\/a><\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">MD5Sum: 15933b7484ae9805596847602ad5b795 prime-numbers_v1.2.zip<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prime Numbers v1.2 (Win x32\/x64)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Data: 12\/12\/2010<br>Features:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Compiled on virtual machine running windows XP 32 bit<br>Parametres by command line<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background\" href=\"http:\/\/fred151.net\/getfile.php?name=prime-numbers_v1.2.tar.gz\" style=\"background-color:#0069d9\">Prime Numbers &#8211; Linux x64<\/a><\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">MD5Sum: 3a89f6c17d01d5df5bd7500b707524cd prime-numbers_v1.2.tar.gz<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;The Music of the Primes&#8221; I&#8217;m ever fascinated about sequence numbers and prime numbers. So this is the why of this creation. This is my first program written in language C. All people know the power of prime numbers, they are still using in algorithms to crypt the comunications. A small definition &#8220;A prime number [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":271,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programs-scripts"],"_links":{"self":[{"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":5,"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/posts\/167\/revisions\/487"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/media\/271"}],"wp:attachment":[{"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fred151.net\/site\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}