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 1, 2024 14:30Yuriy LyfenkoYuriy LyfenkoScore: 27,268Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 1, 2024 14:3026,98154,825,97822,711,0001,032,0002,527,232
2May 1, 2024 14:3027,16755,566,03522,911,000996,0002,269,184
3May 1, 2024 14:3027,19749,567,89921,939,0001,994,0002,383,872
4May 1, 2024 14:3027,19750,049,90423,933,00002,265,088
5May 1, 2024 14:3027,22748,640,42122,962,000998,0002,392,064
6May 1, 2024 14:3027,25051,704,51522,981,000999,0002,527,232
7May 1, 2024 14:3027,26849,523,75221,997,0001,999,0002,383,872
8May 1, 2024 14:3027,30851,730,00922,029,0002,002,0002,265,088
9May 1, 2024 14:3027,36450,314,33223,077,0001,003,0002,392,064
10May 1, 2024 14:3028,26892,650,26424,876,01902,363,392
11May 1, 2024 14:3028,36688,487,88624,961,66602,236,416
12May 1, 2024 14:3028,46283,641,95025,046,67602,236,416