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 12, 2024 16:50Ivan BessonovIvan BessonovScore: 43,720Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2024 16:5040,57793,646,50035,707,46402,256,896
2May 12, 2024 16:5040,63892,783,88835,761,77802,265,088
3May 12, 2024 16:5040,705118,974,53735,820,81402,252,800
4May 12, 2024 16:5043,62259,811,64337,377,0001,010,0002,383,872
5May 12, 2024 16:5043,69166,651,32437,437,0001,011,0002,277,376
6May 12, 2024 16:5043,71959,280,17237,461,0001,012,0002,289,664
7May 12, 2024 16:5043,72059,506,33337,462,0001,012,0002,269,184
8May 12, 2024 16:5043,72460,288,72237,465,0001,012,0002,281,472
9May 12, 2024 16:5043,74761,531,83438,497,00002,273,280
10May 12, 2024 16:5043,80262,808,50737,532,0001,014,0002,289,664
11May 12, 2024 16:5043,89462,649,13638,627,00002,289,664
12May 12, 2024 16:5043,93164,564,85538,659,00002,289,664