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 18, 2024 18:31Ivan BessonovIvan BessonovScore: 17,432Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 18:3117,14234,456,41914,080,0001,005,0002,314,240
2May 18, 2024 18:3117,16632,584,42613,092,0002,014,0002,301,952
3May 18, 2024 18:3117,18037,416,74013,103,0002,015,0002,289,664
4May 18, 2024 18:3117,20731,084,06913,123,0002,019,0002,297,856
5May 18, 2024 18:3117,21936,600,79313,133,0002,020,0002,289,664
6May 18, 2024 18:3117,34479,716,96115,262,32602,281,472
7May 18, 2024 18:3117,43259,783,61615,340,41402,281,472
8May 18, 2024 18:3118,08343,132,98113,924,0001,989,0002,289,664
9May 18, 2024 18:3118,12234,214,84613,954,0001,993,0002,289,664
10May 18, 2024 18:3118,12337,005,58814,952,000996,0002,285,568
11May 18, 2024 18:3118,28245,223,85414,077,0002,011,0002,281,472
12May 18, 2024 18:3118,29071,862,13016,094,95902,289,664