In the 1840s, Ada Lovelace wrote instructions for a mechanical computer that hadn't even been built, the world's first computer program, a century before electronic computers.
The machine was Charles Babbage's Analytical Engine. Lovelace saw further than Babbage: she wrote that such a machine could compose music and create art, not just do sums.
From: Unbelievable inventions.
No source was recorded for this fact on the old site.