Total Pageviews

Search This Blog

Saturday, September 19, 2026

integer factorization reconsidered - trial multiplication

In nature, there is always a path of least resistance. Similarly, in math, there is always an optimal algorithm for any situation.

Regarding the integer factorization problem, only one case is of particular interest for cryptography: the factorization of large semiprimes when the prime factors are nearly equal. 

In this case, the most efficient method is to find the smallest integer n such that n^2 exceeds the semiprime. Any semiprime p*q will be less than some n^2 with p < n < q, and q << 2*n.

Suppose we want to factor 988027 and know it is semiprime. Its square root rounded to the nearest integer is 999. From trial multiplication, we find that 992 is the smallest integer that when squared is greater than 988027. And if we systematically check the numbers greater than 992 which end in 1, 3, 7, or 9, we quickly find that 997 is a factor of 988027. 

The semiprimes used for cryptography are vastly larger, but the principle is the same. It makes more sense to use trial multiplication before trial division. 

Trial multiplication is a method for solving the discrete logarithm problem. I see it as part of a one-two punch for the integer factorization problem. 






 

Thursday, September 17, 2026

Rambo history lesson

Rambo in Afghanistan



I give Hollywood credit for trying to teach Americans world history via America's most famous fictional soldier. In Tanzania, where I lived for a few years, rambo is slang for a plastic bag, because most had his picture on it and they are tough like Stallone. 

Makmende is East Africa's version of Rambo and Chuck Norris. His name is joke on the Clint Eastwood phrase "make my day".



Sudden Impact - "Go Ahead Make My Day."




the big picture






the plot thickens

I was pleasantly surprised to find a ternary computer for sale. This part jumped out at me:



I'm tempted to buy one and turn it into Deep Dish 3. Here's a pic of Deep Dish 2, which I built in 2021:


It's cooled with mineral oil and copper BBs. The FBI came to my apartment in 2023 to ask me about it.

More info here:




A cluster of oil-cooled ternary computers would be a real game changer, kind of like this:



World's Largest Raspberry Pi Cluster


Most innovation comes from combining or repurposing existing ideas. A Soviet engineer named Altshuler discovered that. You can use his idea matrix here:


In the case of supercomputers, the ideas to combine are oil-cooling, ternary logic, and Beowulf cluster computing.  

A joke for my FBI and NSA minders - I saw this as a screen saver in the NSA building I used to work in.


further reading


Setun - Wikipedia