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 7, 2024 17:11Ivan BessonovIvan BessonovScore: 48,777Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 17:1144,253101,933,71638,942,31802,273,280
2May 7, 2024 17:1144,282115,500,59638,968,40602,260,992
3May 7, 2024 17:1144,434107,608,30939,101,48002,252,800
4May 7, 2024 17:1148,55376,625,44142,727,00002,289,664
5May 7, 2024 17:1148,74368,006,61140,899,0001,995,0002,269,184
6May 7, 2024 17:1148,76866,384,76140,920,0001,996,0002,289,664
7May 7, 2024 17:1148,77770,052,64640,928,0001,996,0002,289,664
8May 7, 2024 17:1148,79569,094,03940,943,0001,997,0002,289,664
9May 7, 2024 17:1148,80972,112,92741,954,000998,0002,273,280
10May 7, 2024 17:1148,86076,866,79840,998,0001,999,0002,289,664
11May 7, 2024 17:1148,88666,119,37642,020,0001,000,0002,289,664
12May 7, 2024 17:1149,01968,400,80041,131,0002,006,0002,289,664