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 16, 2024 21:12Ivan BessonovIvan BessonovScore: 30,768Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:1227,29686,789,99724,020,28502,260,992
2May 16, 2024 21:1227,335103,627,73324,054,74702,256,896
3May 16, 2024 21:1227,440110,466,88024,147,44502,260,992
4May 16, 2024 21:1230,62848,399,99325,955,000998,0002,289,664
5May 16, 2024 21:1230,66454,137,52524,986,0001,998,0002,289,664
6May 16, 2024 21:1230,73449,799,49225,043,0002,003,0002,273,280
7May 16, 2024 21:1230,76855,174,05125,071,0002,005,0002,273,280
8May 16, 2024 21:1230,77457,809,81826,078,0001,003,0002,269,184
9May 16, 2024 21:1230,79848,415,48525,095,0002,007,0002,375,680
10May 16, 2024 21:1230,81549,532,53226,113,0001,004,0002,269,184
11May 16, 2024 21:1230,99750,702,89625,257,0002,020,0002,289,664
12May 16, 2024 21:1231,03155,487,16826,296,0001,011,0002,289,664