Toptal interview question

String processing and prime numbers