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 21, 2024 08:11Ivan BessonovIvan BessonovScore: 15,798Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 08:1115,38183,513,43213,535,40602,195,456
2May 21, 2024 08:1115,42766,661,67913,575,94802,207,744
3May 21, 2024 08:1115,460103,373,63713,605,14502,199,552
4May 21, 2024 08:1115,60530,956,90813,732,00002,347,008
5May 21, 2024 08:1115,79241,465,82811,912,0001,985,0002,289,664
6May 21, 2024 08:1115,79241,072,60511,912,0001,985,0002,289,664
7May 21, 2024 08:1115,79831,537,24612,909,000993,0002,285,568
8May 21, 2024 08:1115,81730,653,09411,931,0001,988,0002,289,664
9May 21, 2024 08:1116,26528,009,29412,269,0002,044,0002,289,664
10May 21, 2024 08:1116,29138,094,54512,288,0002,048,0002,289,664
11May 21, 2024 08:1116,35540,489,36512,336,0002,056,0002,289,664
12May 21, 2024 08:1116,39830,268,96113,400,0001,030,0002,289,664