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 17:07Ivan BessonovIvan BessonovScore: 36,614Success
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 17:0731,39886,868,27927,630,04402,269,184
2May 16, 2024 17:0731,49491,775,07227,714,64702,269,184
3May 16, 2024 17:0731,50496,024,95927,723,74802,269,184
4May 16, 2024 17:0736,53055,226,80530,137,0002,009,0002,289,664
5May 16, 2024 17:0736,59256,987,73330,189,0002,012,0002,281,472
6May 16, 2024 17:0736,61058,621,01930,204,0002,013,0002,273,280
7May 16, 2024 17:0736,61460,198,49130,207,0002,013,0002,289,664
8May 16, 2024 17:0736,61657,674,44231,216,0001,006,0002,289,664
9May 16, 2024 17:0736,70355,661,42930,281,0002,018,0002,281,472
10May 16, 2024 17:0736,74856,059,24131,328,0001,010,0002,289,664
11May 16, 2024 17:0736,76052,160,19932,349,00002,392,064
12May 16, 2024 17:0736,84360,003,79130,396,0002,026,0002,289,664