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 20, 2024 20:21Ivan BessonovIvan BessonovScore: 15,330Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:2115,26432,809,73312,399,0001,033,0002,457,600
2May 20, 2024 20:2115,29230,436,82512,422,0001,035,0002,289,664
3May 20, 2024 20:2115,31638,938,98412,442,0001,036,0002,289,664
4May 20, 2024 20:2115,31938,576,72413,481,00002,289,664
5May 20, 2024 20:2115,32539,743,47412,449,0001,037,0002,334,720
6May 20, 2024 20:2115,32534,940,78312,449,0001,037,0002,289,664
7May 20, 2024 20:2115,33030,464,16012,453,0001,037,0002,289,664
8May 20, 2024 20:2115,35838,908,65412,476,0001,039,0002,289,664
9May 20, 2024 20:2115,51756,452,06913,654,95002,199,552
10May 20, 2024 20:2115,582102,327,48413,712,32102,260,992
11May 20, 2024 20:2116,05033,627,22513,116,0001,008,0002,347,008
12May 20, 2024 20:2116,38683,688,43514,419,63502,187,264