Sieving with Lehmer, by Lego or by Fischer Technik

Let’s factorise a big number, Jevons’ number, a number from 1874 held up as practically impossible to factorise…

image

Here’s a Lego approach to Lehmer’s sieve, from Uli Meyer’s informative pdf:
Reconstruction of D.H. Lehmer’s number theory computer with LEGO®

image

Here’s Lehmer’s paper from 1928:
The Mechanical Combination of Linear Forms

In 1996 Solomon Golomb showed how even in Jevon’s time the problem might have been solved in a matter of hours, by careful thinking and a certain amount of calculation. Golomb himself used a 10 digit calculator with a memory and a square root function and got it done in 6 minutes.

Of course I’m a fan of Lego, and I could have been a fan of Fischer-Technik if I’d had enough of it…

I’m pretty sure I’ve read of Turing surrounding himself with brass wheels constructing a prime number sieve… (but it turns out I’m wrong…)

The second problem that Turing investigated on the Manchester Mark 1 was the Riemann Hypothesis (or RH), which has to do with the asymptotic distribution of prime numbers.

This was a problem close to Turing’s heart, and in fact he made an earlier attempt to investigate RH in 1939 with a special-purpose analog machine, using an elaborate system of gears. Turing had apparently cut most of the gears for the machine before he was interrupted by the war. By the time that he returned to the problem, in June of 1950, the progress toward general-purpose digital computers during the war had made Turing’s 1939 machine obsolete. (The machine was never completed, though we do have a blueprint for it up by Turing’s friend Donald McPhail. A project has recently been proposed to build it; ironically, the first step of that undertaking will be a computer simulation.)

  • from TURING AND THE PRIMES by ANDREW R. BOOKER

Here’s that blueprint on the web:
image

And from this discussion of it, we read about Turing’s first project, in 1937, a binary multiplier:

my small contribution to the project was to lend Turing the key to the shop, which was probably against all the regulations, and to show him how to use the lathe, drill press, (etc.) without chopping off his fingers. And so, he wound the relays; and to our surprise and delight the calculator worked.

and his second, this Zeta function machine, which is prime-related but as it turns out not related to factorising… oops.

Alan’s zeta function computer was a device for adding up a large number
of sines and cosines of various periods and amplitudes… The gears, of which there were to be hundreds, were to provide an approximation to the required periods… Alan obtained rational approximations to [the periods]… by the method of continued fractions. A pair of gears having the number of teeth indicated respectively by the numerator and denominator of the fraction would then rotate at speeds having approximately the desired ratio.”

(via Thomas Puettmann on hpmuseum forums)

2 Likes

Thomas has unearthed another paper, which tells of the unearthing of another marvellous machine, completed in 1919:

There’s an unexpected link to Minitel:

Soon we were engaged in an active search for its whereabouts in France. We looked for clues at the Conservatoire National des Arts et Métiers (CNAM), the École Normale Superieure, the Institut Henri Poincaré and the Bibliothèque Nationale (BN), without success. We also were unable to contact the company that built the machine, Maison Chateau Frères- they had apparently gone out of business. When a year of intermittent searching failed, we resorted to what seemed at the time a preposterous idea: we would write a letter to each person named Carissan in France and ask for leads. But how to find all the Carissans? Luckily for us, France Telecom provides a computerized database of telephone numbers via the Minitel, a small terminal provided free of charge to Telecom subscribers…

3 Likes

Here’s a nicely told story by Lehmer himself, on the making, debugging, and successful running of a later faster sieve:
Hunting Big Game in the Theory of Numbers (1932)

The machine in Pasadena is the first attempt to apply the magic of the photo-electric cell to this problem of the study of remote numbers. Some five years ago a crude machine was constructed of bicycle sprocket-wheels with chains of different lengths running over them…

The sprocket-wheels and chains have been replaced by steel gears of different radii meshing into cogs of other gears solidly mounted on a heavy steel shaft. The pins with their uncertain contacts have been replaced by a ray of light which slips through holes in the gears. For a given problem some of these holes will be opened and some closed. When there is an alignment of open holes (which event signalizes a solution) a ray of light slips through them and falls for the ten-thousandth part of a second on the sensitive eye of a photo-electric cell. This infinitesimal impulse is sent by the cell to an amplifier which magnifies it 729,000,000 times. This magnified impulse is strong enough to throw off the current which drives the machine and the whirling wheels come to a standstill. The number of revolutions is then read off on a counting device and the solution is in hand.

The Smithsonian has an earlier effort, factor stencils, being sheets of punched paper, dating from 1929. Also a later effort, punched cards, from 1939.

We’re told 50 sets of the factors stencils were distributed to libraries. There’s more, including some lovely modern stencils, in this video:

2 Likes

Reminds me of the 1955 Geniac.

The Computer History Musem has a lot of the Lehmers’ machinery:

https://www.computerhistory.org/collections/search/?s=Lehmer

1 Like

Thanks! Within there we find a 1982 lecture by Lehmer, which is available on YouTube:

2 Likes