Some think the apostrophe is called for, but most grammarians believe it should be reserved for the possessive; 1960s and 1800s is a better choice. As for 500s BC , I find it an odd or at least unusual combination, and cannot think why the writer did not use 6th century BC .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.