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 21:13Ivan BessonovIvan BessonovScore: 31,138Success
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 21:1328,11486,391,61724,740,12702,252,800
2May 16, 2024 21:1328,156100,515,75324,776,98002,265,088
3May 16, 2024 21:1328,204105,131,33324,819,95702,260,992
4May 16, 2024 21:1331,05048,701,32126,312,0001,012,0002,273,280
5May 16, 2024 21:1331,08248,405,60626,339,0001,013,0002,269,184
6May 16, 2024 21:1331,08250,997,35926,339,0001,013,0002,289,664
7May 16, 2024 21:1331,13848,488,37026,387,0001,014,0002,396,160
8May 16, 2024 21:1331,15553,796,26426,401,0001,015,0002,289,664
9May 16, 2024 21:1331,17350,595,90227,432,00002,289,664
10May 16, 2024 21:1331,17649,438,49927,435,00002,289,664
11May 16, 2024 21:1331,30150,052,90426,525,0001,020,0002,289,664
12May 16, 2024 21:1331,32350,451,89826,544,0001,020,0002,289,664