Papyrus Rhind
Algorithms for arithmetic are also found in ancient Egyptian mathematics, dating back to the Rhind Mathematical Papyrus circa 1550 BC. Algorithms were later used in ancient Hellenistic mathematics. Two examples are the Sieve of Eratosthenes, which was described in the "Introduction to Arithmetic" by Nicomachus, and the Euclidean algorithm, which was first described in "Euclid's Elements" (c. 300 BC).