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 19:09apuxbtapuxbtScore: 31,402Success
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 19:0930,77987,121,83627,085,71802,240,512
2Oct 2, 2023 19:0930,810109,339,50827,113,15502,240,512
3Oct 2, 2023 19:0930,89686,920,86127,188,88902,248,704
4Oct 2, 2023 19:0931,35850,083,98926,573,0001,022,0002,523,136
5Oct 2, 2023 19:0931,39048,152,61824,554,0003,069,0002,392,064
6Oct 2, 2023 19:0931,39749,899,28526,606,0001,023,0002,383,872
7Oct 2, 2023 19:0931,40248,696,26426,611,0001,023,0002,387,968
8Oct 2, 2023 19:0931,40349,061,99225,588,0002,047,0002,392,064
9Oct 2, 2023 19:0931,44260,750,84624,595,0003,074,0002,392,064
10Oct 2, 2023 19:0931,45158,438,86125,627,0002,050,0002,387,968
11Oct 2, 2023 19:0931,67552,905,95924,888,0002,986,0002,514,944
12Oct 2, 2023 19:0931,69252,669,03222,909,0004,980,0002,523,136