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 19:10Ivan BessonovIvan BessonovScore: 31,244Success
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 19:1027,91593,139,62924,565,52902,256,896
2May 16, 2024 19:1027,98097,445,27824,622,12502,252,800
3May 16, 2024 19:1028,02184,123,42524,658,46902,256,896
4May 16, 2024 19:1031,16454,124,00126,409,0001,015,0002,277,376
5May 16, 2024 19:1031,21850,492,41026,455,0001,017,0002,281,472
6May 16, 2024 19:1031,22351,409,96626,459,0001,017,0002,285,568
7May 16, 2024 19:1031,24460,955,24526,477,0001,018,0002,289,664
8May 16, 2024 19:1031,24551,072,58926,478,0001,018,0002,375,680
9May 16, 2024 19:1031,28355,710,47726,510,0001,019,0002,289,664
10May 16, 2024 19:1031,30046,501,48027,544,00002,277,376
11May 16, 2024 19:1031,33849,732,21126,556,0001,021,0002,269,184
12May 16, 2024 19:1031,36849,911,90926,582,0001,022,0002,273,280