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 listMay 16, 2024 20:55Ivan BessonovIvan BessonovScore: 31,809Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:5531,66553,623,87525,875,0001,990,0002,265,088
2May 16, 2024 20:5531,68558,234,29326,888,000995,0002,289,664
3May 16, 2024 20:5531,71453,432,43727,908,00002,273,280
4May 16, 2024 20:5531,73058,013,88826,925,000997,0002,289,664
5May 16, 2024 20:5531,73854,495,92926,895,0001,034,0002,396,160
6May 16, 2024 20:5531,79550,369,96225,982,0001,998,0002,269,184
7May 16, 2024 20:5531,80953,799,44025,993,0001,999,0002,289,664
8May 16, 2024 20:5531,90152,762,79827,071,0001,002,0002,289,664
9May 16, 2024 20:5531,94555,796,03026,104,0002,008,0002,289,664
10May 16, 2024 20:5534,347108,659,21130,225,02102,265,088
11May 16, 2024 20:5534,484102,840,58630,346,12702,260,992
12May 16, 2024 20:5534,587100,668,77030,436,20402,260,992