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 6, 2023 08:31matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:3100000Error: expected "51071743463343 ", got "51071743463284 "
2Dec 29, 2023 14:5917,76286,918,84515,630,64602,191,360
3Dec 29, 2023 14:5917,79765,641,47015,661,33802,199,552
4Dec 29, 2023 14:5917,80775,205,55515,669,86002,215,936
5Oct 6, 2023 08:3117,83656,927,81615,695,32402,252,800
6Oct 6, 2023 08:3117,84442,197,27512,563,0003,140,0002,265,088
7Oct 6, 2023 08:3117,85542,801,19114,665,0001,047,0002,351,104
8Oct 6, 2023 08:3117,86442,573,73912,576,0003,144,0002,392,064
9Oct 6, 2023 08:3117,87834,895,99212,587,0003,146,0002,412,544
10Oct 6, 2023 08:3117,88135,953,74413,637,0002,098,0002,482,176
11Oct 6, 2023 08:3117,92885,019,16115,776,66702,314,240
12Oct 6, 2023 08:3117,93588,291,80315,782,44402,187,264
13Oct 6, 2023 08:3117,94437,046,12415,791,00002,510,848
14Oct 6, 2023 08:3118,02236,581,71812,886,0002,973,0002,371,584
15Oct 6, 2023 08:3118,04942,525,00412,905,0002,978,0002,490,368
16Oct 6, 2023 08:3118,12535,687,88111,963,0003,987,0002,273,280