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 listDec 13, 2024 01:14zielajzielajScore: 8,752Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 01:128,68423,013,3087,642,00002,314,240
2Dec 13, 2024 01:148,70329,315,8797,659,00002,301,952
3Dec 13, 2024 01:128,70625,429,1087,661,00002,531,328
4Dec 13, 2024 01:148,70629,199,3087,661,00002,306,048
5Dec 13, 2024 01:148,71122,959,4067,666,00002,531,328
6Dec 13, 2024 01:148,74522,623,3007,696,00002,527,232
7Dec 13, 2024 01:148,75225,272,0365,777,0001,925,0002,269,184
8Dec 13, 2024 01:148,76424,634,1037,712,00002,269,184
9Dec 13, 2024 01:148,77022,573,7697,718,00002,416,640
10Dec 13, 2024 01:128,78029,197,9947,726,00002,416,640
11Dec 13, 2024 01:148,85723,448,3027,794,00002,314,240
12Dec 13, 2024 01:148,98023,313,3035,927,0001,975,0002,318,336