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 5, 2024 16:11Ivan BessonovIvan BessonovScore: 48,738Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 16:1144,841119,041,13239,460,40702,248,704
2May 5, 2024 16:1144,887107,251,06139,500,29302,252,800
3May 5, 2024 16:1145,036108,292,20039,631,93002,260,992
4May 5, 2024 16:1148,44463,934,68242,631,00002,289,664
5May 5, 2024 16:1148,73271,680,97640,890,0001,994,0002,273,280
6May 5, 2024 16:1148,73669,315,97140,894,0001,994,0002,273,280
7May 5, 2024 16:1148,73867,769,46740,895,0001,994,0002,289,664
8May 5, 2024 16:1148,73968,618,51641,893,000997,0002,289,664
9May 5, 2024 16:1148,75768,715,59740,911,0001,995,0002,289,664
10May 5, 2024 16:1148,80068,663,42441,946,000998,0002,289,664
11May 5, 2024 16:1148,82766,879,98740,970,0001,998,0002,289,664
12May 5, 2024 16:1148,86463,966,80442,000,0001,000,0002,289,664