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 listFeb 22, 2024 16:21Huy Duc LeHuy Duc LeScore: 30,781Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 16:2130,64151,052,48624,967,0001,997,0002,494,464
2Feb 22, 2024 16:2130,66953,873,90224,990,0001,999,0002,289,664
3Feb 22, 2024 16:2130,67648,971,39724,996,0001,999,0002,490,368
4Feb 22, 2024 16:2130,75049,468,28725,056,0002,004,0002,289,664
5Feb 22, 2024 16:2130,76491,936,10727,072,55102,215,936
6Feb 22, 2024 16:2130,76953,006,98625,072,0002,005,0002,494,464
7Feb 22, 2024 16:2130,78153,781,75625,081,0002,006,0002,289,664
8Feb 22, 2024 16:2130,79750,122,88025,094,0002,007,0002,486,272
9Feb 22, 2024 16:2130,82748,637,06025,119,0002,009,0002,486,272
10Feb 22, 2024 16:2130,83249,745,69126,128,0001,004,0002,289,664
11Feb 22, 2024 16:2130,929100,061,57627,217,94102,215,936
12Feb 22, 2024 16:2130,93599,805,24327,223,00202,220,032