Dassault Systèmes Interview Question

prime number function, matrix array