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 19, 2024 08:29Ivan BessonovIvan BessonovScore: 16,910Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:2916,39237,312,29813,395,0001,030,0002,342,912
2May 19, 2024 08:2916,39935,578,21213,401,0001,030,0002,285,568
3May 19, 2024 08:2916,45833,482,79713,449,0001,034,0002,289,664
4May 19, 2024 08:2916,46340,756,68914,487,00002,289,664
5May 19, 2024 08:2916,47630,837,01113,464,0001,035,0002,289,664
6May 19, 2024 08:2916,51037,809,77513,492,0001,037,0002,285,568
7May 19, 2024 08:2916,91077,701,13514,880,88302,183,168
8May 19, 2024 08:2917,07238,674,17013,020,0002,003,0002,330,624
9May 19, 2024 08:2917,12434,396,96213,060,0002,009,0002,289,664
10May 19, 2024 08:2917,48263,506,42915,384,58702,191,360
11May 19, 2024 08:2917,51583,735,65215,413,12002,195,456
12May 19, 2024 08:2918,51338,888,80014,255,0002,036,0002,334,720