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:24Ivan BessonovIvan BessonovScore: 30,572Success
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:2427,04184,117,80323,795,81102,260,992
2May 16, 2024 21:2427,35582,335,57724,071,96202,265,088
3May 16, 2024 21:2427,38384,452,20224,097,21502,260,992
4May 16, 2024 21:2430,55160,138,71525,890,000995,0002,269,184
5May 16, 2024 21:2430,56056,710,79724,901,0001,992,0002,277,376
6May 16, 2024 21:2430,56951,973,71326,901,00002,289,664
7May 16, 2024 21:2430,57251,057,85924,911,0001,992,0002,273,280
8May 16, 2024 21:2430,57652,522,46625,911,000996,0002,289,664
9May 16, 2024 21:2430,60648,678,34524,938,0001,995,0002,289,664
10May 16, 2024 21:2430,65349,848,34624,977,0001,998,0002,289,664
11May 16, 2024 21:2430,70957,714,19625,023,0002,001,0002,289,664
12May 16, 2024 21:2430,77660,221,80825,077,0002,006,0002,289,664