Krawler interview question

basic programming like string manipulation, matrix , prime number , perfect number