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 listApr 30, 2024 22:43gchebanovgchebanovScore: 24,428Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2024 22:4324,19844,035,90719,266,0002,028,0002,453,504
2Apr 30, 2024 22:4324,23042,267,80720,307,0001,015,0002,449,408
3Apr 30, 2024 22:4324,25144,900,37821,341,00002,285,568
4Apr 30, 2024 22:4324,29542,554,83620,362,0001,018,0002,449,408
5Apr 30, 2024 22:4324,30043,846,48320,366,0001,018,0002,285,568
6Apr 30, 2024 22:4324,41544,560,38420,462,0001,023,0002,285,568
7Apr 30, 2024 22:4324,42847,132,88019,450,0002,047,0002,461,696
8Apr 30, 2024 22:4324,43445,880,99820,479,0001,023,0002,285,568
9Apr 30, 2024 22:4324,51342,494,59820,544,0001,027,0002,281,472
10Apr 30, 2024 22:4324,75993,054,54421,788,34402,301,952
11Apr 30, 2024 22:4324,79683,311,41821,820,84702,293,760
12Apr 30, 2024 22:4324,80084,047,58021,824,42802,301,952