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 17, 2024 06:32Ivan BessonovIvan BessonovScore: 29,065Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 06:3225,58879,729,61722,517,34502,256,896
2May 17, 2024 06:3225,64980,060,67222,571,44302,396,160
3May 17, 2024 06:3225,70696,430,81622,621,17202,281,472
4May 17, 2024 06:3229,01747,599,16724,514,0001,021,0002,289,664
5May 17, 2024 06:3229,05654,500,44124,547,0001,022,0002,273,280
6May 17, 2024 06:3229,06550,929,44124,554,0001,023,0002,289,664
7May 17, 2024 06:3229,06546,833,63024,554,0001,023,0002,289,664
8May 17, 2024 06:3229,08849,355,64324,574,0001,023,0002,289,664
9May 17, 2024 06:3229,10346,403,86925,611,00002,273,280
10May 17, 2024 06:3229,20855,982,92424,675,0001,028,0002,289,664
11May 17, 2024 06:3229,24352,787,63725,734,00002,289,664
12May 17, 2024 06:3229,38647,718,66023,871,0001,989,0002,277,376