Pergunta de entrevista da empresa HPC Sphere

1.find first prime number in array? 2.second largest element in array?