Were Ibn al-Haytham and Al-Biruni alive at the same time?
Yes. Ibn al-Haytham and Al-Biruni were alive at the same time for 65 or 66 years, from AD 973 to 1039.
Al-Biruni was 65 or 66 when Ibn al-Haytham died.
Al-Biruni
11th-century Persian scholar and polymath
Born 4 September AD 973 · died 9 December 1048, aged 75