Writing
The invention of the first writing systems is roughly contemporary with the beginning of the Bronze Age of the late 4th millennium BC. The Sumerian archaic cuneiform script and the Egyptian hieroglyphs are generally considered the earliest writing systems, both emerging out of their ancestral proto-literate symbol systems from 3400 to 3200 BC with earliest coherent texts from about 2600 BC. It is generally agreed that Sumerian writing was an independent invention; however, it is debated whether Egyptian writing was developed completely independently of Sumerian, or was a case of cultural diffusion.
Prehistory
Human prehistory is the period between the use of the first stone tools 3.3 million years ago by hominins and the invention of writing systems. The earliest writing systems appeared 5,300 years ago, but it took thousands of years for writing to be widely adopted and it was not used in some human cultures until the 19th century or even until the present. The end of prehistory therefore came at very different dates in different places, and the term is less often used in discussing societies where prehistory ended relatively recently.