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 14, 2024 15:19Ivan BessonovIvan BessonovScore: 36,776Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:1931,53596,379,61227,751,16802,260,992
2May 14, 2024 15:1931,56290,764,06327,774,89002,260,992
3May 14, 2024 15:1931,57693,434,35727,786,59202,269,184
4May 14, 2024 15:1936,73456,536,38632,326,00002,289,664
5May 14, 2024 15:1936,75153,560,89232,341,00002,289,664
6May 14, 2024 15:1936,76157,168,17131,340,0001,010,0002,289,664
7May 14, 2024 15:1936,77657,720,53432,363,00002,289,664
8May 14, 2024 15:1936,82453,740,03031,393,0001,012,0002,273,280
9May 14, 2024 15:1936,84855,903,63532,426,00002,289,664
10May 14, 2024 15:1936,86955,261,70631,432,0001,013,0002,289,664
11May 14, 2024 15:1936,96058,526,11331,509,0001,016,0002,273,280
12May 14, 2024 15:1937,01154,762,93631,553,0001,017,0002,289,664