Domanda di colloquio di Intel Corporation

Write Code: Print the first 100 primes.

Risposta di colloquio

Anonimo

20 set 2020

(Wrote in python format, keeping a counter of primes printed, and counting upwards, checking if each number is prime by using a loop with range(2, sqrt(num)) and rejecting if the num % i != 0)