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 20:08Ivan BessonovIvan BessonovScore: 26,227Success
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 20:0826,03651,903,58121,916,000996,0002,289,664
2May 16, 2024 20:0826,10747,439,93420,977,0001,997,0002,273,280
3May 16, 2024 20:0826,12046,965,84421,987,000999,0002,289,664
4May 16, 2024 20:0826,14744,781,52522,009,0001,000,0002,273,280
5May 16, 2024 20:0826,17448,190,31222,032,0001,001,0002,289,664
6May 16, 2024 20:0826,18250,765,35221,037,0002,003,0002,289,664
7May 16, 2024 20:0826,22747,481,67521,073,0002,007,0002,269,184
8May 16, 2024 20:0826,27750,147,83322,119,0001,005,0002,289,664
9May 16, 2024 20:0826,29044,632,38421,124,0002,011,0002,277,376
10May 16, 2024 20:0828,00480,352,92124,643,20502,256,896
11May 16, 2024 20:0828,018101,474,71324,655,94802,260,992
12May 16, 2024 20:0828,07097,039,85024,701,38702,256,896