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 14, 2024 15:22Ivan BessonovIvan BessonovScore: 36,411Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:2231,116111,450,24727,382,30002,248,704
2May 14, 2024 15:2231,18684,196,60227,443,84202,252,800
3May 14, 2024 15:2231,31475,253,42127,556,51202,256,896
4May 14, 2024 15:2236,28555,228,00529,936,0001,995,0002,289,664
5May 14, 2024 15:2236,33656,854,57529,978,0001,998,0002,289,664
6May 14, 2024 15:2236,34059,116,63029,981,0001,998,0002,289,664
7May 14, 2024 15:2236,41152,365,38030,040,0002,002,0002,269,184
8May 14, 2024 15:2236,47358,252,06931,093,0001,003,0002,289,664
9May 14, 2024 15:2236,50755,229,45530,119,0002,007,0002,375,680
10May 14, 2024 15:2236,50957,113,94931,124,0001,004,0002,355,200
11May 14, 2024 15:2236,52355,697,81030,132,0002,008,0002,289,664
12May 14, 2024 15:2236,66357,476,25931,255,0001,008,0002,289,664