Pagini recente » Atasamentele paginii detective | Diferente pentru utilizator/cotofana intre reviziile 3 si 15 | Monitorul de evaluare | "Adolescent Grigore Moisil" International Programming Contest | Diferente pentru blog/primegenerator intre reviziile 4 si 5
Nu exista diferente intre titluri.
Diferente intre continut:
How would you build an efficient prime number generator?
Let the generator be an object G with the method nextPrime(). When we call it G.getNextPrime() the first time it returns 2. Every time we call it again it returns the next prime number.
So if we do:
So if we do:
G = PrimeGenerator()
print G.nextPrime()
print G.nextPrime()
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.