P, NP, NC and Other Funny Complexity Classes

A few days ago I saw a news that caught my attention, about the Exponential Time Hypotesis (ETH) and its connection to 3-SAT: apparently an AI has proved it false! This reminded me two things: that I almost forgot everything I know about this topic and that I had promised myself to complete the section… Continue reading P, NP, NC and Other Funny Complexity Classes

Computing One Million Digits of Pi with Machin’s Formula

Most of you are just searching one million digits of Pi, so here you are: download Let continue the serie of computation of mathematical constants that we started with Euler Number. This time our target is π, the famous “3.14” ratio between circumference and diameter of a circle. Since out target is to compute one… Continue reading Computing One Million Digits of Pi with Machin’s Formula

Computing 1 million digits of Euler’s Number

Here the million digits of e, if you are just searching them: 1 million digits of e With this thread I start a new mathematical and computational branch: the art of computing decimals of particular mathematical constants. The first one will be e, the Euler’s number, about 2.7182818284, which is the base of exponential function… Continue reading Computing 1 million digits of Euler’s Number

Integer Factoring – Quadratic Sieve

SPOILER ALERT!!! Long and boring article, quite technical, it is in preparation to a Java implementation of the QS that will be included in the Factoring App presented in this site. So far the Java library is not yet ready, but it is under development. In previous posts we saw something about integer factorization, in… Continue reading Integer Factoring – Quadratic Sieve

Trial Division and Eratosthene’s Sieve

Let’s suppose you change telephone number. Almost surely the first thing you think is “is my new phone number prime?”. Since the number is small the naive method “let’s try to divide the phone number by all numbers less than it” is good (at least if you do it with the computer). You can improve… Continue reading Trial Division and Eratosthene’s Sieve