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 3, 2023 00:57apuxbtapuxbtScore: 29,947Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 00:5729,59091,836,11226,038,96602,224,128
2Oct 3, 2023 00:5729,64870,342,77826,090,55502,256,896
3Oct 3, 2023 00:5729,65087,267,79726,091,92802,215,936
4Oct 3, 2023 00:5729,93548,499,37225,330,0001,013,0002,490,368
5Oct 3, 2023 00:5729,93949,617,51125,333,0001,013,0002,293,760
6Oct 3, 2023 00:5729,94748,174,22825,340,0001,013,0002,347,008
7Oct 3, 2023 00:5729,94750,424,36426,353,00002,293,760
8Oct 3, 2023 00:5729,95946,597,41425,350,0001,014,0002,490,368
9Oct 3, 2023 00:5729,96352,847,04925,353,0001,014,0002,502,656
10Oct 3, 2023 00:5729,98449,891,20025,372,0001,014,0002,293,760
11Oct 3, 2023 00:5729,99052,699,09024,361,0002,030,0002,293,760
12Oct 3, 2023 00:5730,14851,902,00125,548,000982,0002,494,464