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 08:09Ivan BessonovIvan BessonovScore: 50,703Success
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 08:0950,608108,684,59344,534,99302,252,800
2May 5, 2024 08:0950,61973,366,10643,533,0001,012,0002,289,664
3May 5, 2024 08:0950,64570,420,44143,556,0001,012,0002,289,664
4May 5, 2024 08:0950,66968,684,87243,576,0001,013,0002,289,664
5May 5, 2024 08:0950,69865,737,89743,601,0001,013,0002,265,088
6May 5, 2024 08:0950,699100,033,11144,615,01702,256,896
7May 5, 2024 08:0950,703107,967,76544,618,39202,269,184
8May 5, 2024 08:0950,73469,567,58843,632,0001,014,0002,269,184
9May 5, 2024 08:0950,74367,059,64643,640,0001,014,0002,269,184
10May 5, 2024 08:0950,83375,192,61643,717,0001,016,0002,289,664
11May 5, 2024 08:0950,99371,434,60042,880,0001,994,0002,289,664
12May 5, 2024 08:0951,00773,232,27744,886,00002,289,664