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 17, 2024 07:52Ivan BessonovIvan BessonovScore: 24,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 07:5223,88247,844,52819,015,0002,001,0002,273,280
2May 17, 2024 07:5223,90845,996,84519,036,0002,003,0002,289,664
3May 17, 2024 07:5223,95145,389,83819,070,0002,007,0002,265,088
4May 17, 2024 07:5223,95547,216,88219,073,0002,007,0002,289,664
5May 17, 2024 07:5223,96444,159,21520,084,0001,004,0002,273,280
6May 17, 2024 07:5223,97249,054,20219,086,0002,009,0002,273,280
7May 17, 2024 07:5224,01143,850,92419,118,0002,012,0002,289,664
8May 17, 2024 07:5224,02342,597,34119,127,0002,013,0002,281,472
9May 17, 2024 07:5224,09238,867,14919,182,0002,019,0002,273,280
10May 17, 2024 07:5225,52094,361,16122,458,03302,260,992
11May 17, 2024 07:5225,57492,926,37022,504,79002,256,896
12May 17, 2024 07:5225,66589,209,15122,584,93402,273,280