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 listOct 2, 2023 18:31apuxbtapuxbtScore: 37,972Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 18:3137,78156,663,03031,232,0002,015,0002,293,760
2Oct 2, 2023 18:3137,82655,084,68232,279,0001,008,0002,367,488
3Oct 2, 2023 18:3137,84494,801,52533,302,53302,265,088
4Oct 2, 2023 18:3137,92399,287,82833,372,59502,269,184
5Oct 2, 2023 18:3137,932102,011,10633,379,91302,273,280
6Oct 2, 2023 18:3137,94357,078,01132,379,0001,011,0002,273,280
7Oct 2, 2023 18:3137,97254,773,35832,403,0001,012,0002,367,488
8Oct 2, 2023 18:3138,03858,710,78531,445,0002,028,0002,293,760
9Oct 2, 2023 18:3138,13059,297,46132,538,0001,016,0002,285,568
10Oct 2, 2023 18:3138,13259,518,82132,540,0001,016,0002,363,392
11Oct 2, 2023 18:3138,28459,539,09331,649,0002,041,0002,396,160
12Oct 2, 2023 18:3138,68956,743,77732,044,0002,002,0002,322,432