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 16, 2024 18:53Ivan BessonovIvan BessonovScore: 27,156Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 18:5326,90847,771,84023,679,00002,396,160
2May 16, 2024 18:5326,94050,105,29522,677,0001,030,0002,289,664
3May 16, 2024 18:5326,96849,695,33022,701,0001,031,0002,289,664
4May 16, 2024 18:5326,98449,765,00823,746,00002,289,664
5May 16, 2024 18:5326,99350,318,23521,775,0001,979,0002,277,376
6May 16, 2024 18:5327,15648,528,09322,902,000995,0002,269,184
7May 16, 2024 18:5327,15653,855,40321,906,0001,991,0002,273,280
8May 16, 2024 18:5327,15753,785,61121,907,0001,991,0002,277,376
9May 16, 2024 18:5327,20547,742,21521,945,0001,995,0002,289,664
10May 16, 2024 18:5328,81697,157,11225,358,43002,260,992
11May 16, 2024 18:5328,860106,023,18525,396,52502,256,896
12May 16, 2024 18:5328,86876,282,63025,404,18702,252,800