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:46Ivan BessonovIvan BessonovScore: 41,442Success
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:4641,21957,969,90434,258,0002,015,0002,277,376
2May 16, 2024 20:4641,28162,674,78534,309,0002,018,0002,277,376
3May 16, 2024 20:4641,28859,224,35035,324,0001,009,0002,289,664
4May 16, 2024 20:4641,36556,608,68936,401,00002,273,280
5May 16, 2024 20:4641,39156,369,18035,413,0001,011,0002,277,376
6May 16, 2024 20:4641,43463,600,07135,450,0001,012,0002,289,664
7May 16, 2024 20:4641,44259,591,04435,456,0001,013,0002,289,664
8May 16, 2024 20:4641,46564,843,63635,476,0001,013,0002,289,664
9May 16, 2024 20:4641,50661,660,91335,511,0001,014,0002,273,280
10May 16, 2024 20:4643,157102,457,36037,978,42902,265,088
11May 16, 2024 20:4643,24590,645,25638,055,77202,256,896
12May 16, 2024 20:4643,25099,627,35638,060,30902,260,992