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 5, 2024 09:09Ivan BessonovIvan BessonovScore: 45,648Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 09:0945,46162,893,07339,006,0001,000,0002,289,664
2May 5, 2024 09:0945,54763,672,48239,079,0001,002,0002,273,280
3May 5, 2024 09:0945,56065,567,15538,089,0002,004,0002,289,664
4May 5, 2024 09:0945,56959,577,92539,099,0001,002,0002,289,664
5May 5, 2024 09:0945,57366,394,89439,102,0001,002,0002,289,664
6May 5, 2024 09:0945,58864,061,30838,112,0002,005,0002,273,280
7May 5, 2024 09:0945,64861,712,64838,162,0002,008,0002,273,280
8May 5, 2024 09:0945,70265,006,83839,213,0001,005,0002,273,280
9May 5, 2024 09:0945,79563,205,52938,285,0002,015,0002,363,392
10May 5, 2024 09:0946,18899,421,55040,645,49602,256,896
11May 5, 2024 09:0946,20799,809,01940,662,21002,265,088
12May 5, 2024 09:0946,209103,444,59640,663,83802,252,800