Dassault Systèmes interview question

prime number function, matrix array