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 19, 2024 08:22Ivan BessonovIvan BessonovScore: 16,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:2216,39139,476,22313,394,0001,030,0002,334,720
2May 19, 2024 08:2216,42332,098,04113,420,0001,032,0002,289,664
3May 19, 2024 08:2216,42831,157,99413,425,0001,032,0002,334,720
4May 19, 2024 08:2216,47838,015,27214,501,00002,465,792
5May 19, 2024 08:2216,48431,224,84713,470,0001,036,0002,338,816
6May 19, 2024 08:2216,48533,264,04713,471,0001,036,0002,334,720
7May 19, 2024 08:2216,52339,892,80613,502,0001,038,0002,338,816
8May 19, 2024 08:2216,93144,818,79512,913,0001,986,0002,330,624
9May 19, 2024 08:2217,13932,331,84413,071,0002,011,0002,342,912
10May 19, 2024 08:2217,37362,180,48415,288,62302,195,456
11May 19, 2024 08:2217,48883,770,92915,389,08402,195,456
12May 19, 2024 08:2217,65795,698,68015,537,89702,322,432