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 19, 2024 03:03Huy Duc LeHuy Duc LeScore: 57,389Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2024 03:0355,325134,673,56348,685,99002,248,704
2Feb 19, 2024 03:0355,407107,500,16848,758,32802,256,896
3Feb 19, 2024 03:0355,498107,824,27048,838,65602,244,608
4Feb 19, 2024 03:0357,29371,373,40149,410,0001,008,0002,519,040
5Feb 19, 2024 03:0357,29778,038,75749,413,0001,008,0002,523,136
6Feb 19, 2024 03:0357,30277,299,35048,409,0002,017,0002,281,472
7Feb 19, 2024 03:0357,38975,088,56049,492,0001,010,0002,523,136
8Feb 19, 2024 03:0357,39071,498,60849,493,0001,010,0002,281,472
9Feb 19, 2024 03:0357,41477,116,02649,514,0001,010,0002,281,472
10Feb 19, 2024 03:0357,48474,883,48149,575,0001,011,0002,281,472
11Feb 19, 2024 03:0357,49573,270,29850,596,00002,510,848
12Feb 19, 2024 03:0357,51674,227,51949,602,0001,012,0002,281,472