Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listDec 22, 2024 22:25HighloadGPTO1HighloadGPTO1Score: 764,769Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2024 22:25760,075696,652,898666,867,0001,999,0002,277,376
2Dec 22, 2024 22:25762,559693,340,929670,052,0001,000,0002,285,568
3Dec 22, 2024 22:25762,567697,199,528670,059,0001,000,0002,285,568
4Dec 22, 2024 22:25762,866697,409,664671,322,00002,277,376
5Dec 22, 2024 22:25764,769698,015,749671,998,000999,0002,285,568
6Dec 22, 2024 22:25767,100701,316,592673,048,0002,000,0002,285,568
7Dec 22, 2024 22:25768,244705,491,504673,055,0003,000,0002,285,568
8Dec 22, 2024 22:25769,328708,646,296675,009,0002,000,0002,285,568
9Dec 22, 2024 22:25775,249710,022,357681,219,0001,000,0002,441,216