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 18:55Ivan BessonovIvan BessonovScore: 31,309Success
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 18:5528,30382,065,59924,906,96502,256,896
2May 16, 2024 18:5528,31597,791,33524,917,32002,260,992
3May 16, 2024 18:5528,39587,478,45024,987,51202,260,992
4May 16, 2024 18:5531,20848,784,93526,446,0001,017,0002,383,872
5May 16, 2024 18:5531,23654,677,98126,470,0001,018,0002,289,664
6May 16, 2024 18:5531,24052,692,03226,473,0001,018,0002,289,664
7May 16, 2024 18:5531,30948,684,39226,532,0001,020,0002,289,664
8May 16, 2024 18:5531,33653,398,31027,576,00002,269,184
9May 16, 2024 18:5531,34747,044,38627,585,00002,289,664
10May 16, 2024 18:5531,36350,286,95726,577,0001,022,0002,392,064
11May 16, 2024 18:5531,37549,075,09227,610,00002,281,472
12May 16, 2024 18:5531,46052,966,92426,660,0001,025,0002,289,664