To Outrun Doomsday

To Outrun Doomsday is a science fiction novel by English writer Kenneth Bulmer. It was first published in 1967.

Plot summary
The novel concerns "Lucky" Jack Waley, a computer salesman and conman unfortunate enough to be aboard the starship Bucentaure when the engine blows. He crashlands on the planet Kerim, a planet where anything you ask for from the mysterious Pe'Ichen is instantly manufactured before your eyes. Anything trivial. No food, no houses. And for the current generation, no children.

Jack connects up with a variety of rogues to try to save the day, only to discover that Pe'Ichen is an ancient computer with miraculous powers, designed to keep order in the lives of the Kerimites, providing them with their every need. Pe'Ichen, however, has determined that a) the sun will explode in 56 years, and b) that there is no such thing as life on other planets.