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:46Ivan BessonovIvan BessonovScore: 43,772Success
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:4640,50890,595,06635,646,69902,252,800
2May 12, 2024 16:4640,574108,599,78835,705,54302,260,992
3May 12, 2024 16:4640,687101,622,33235,804,31402,256,896
4May 12, 2024 16:4643,59565,061,17637,355,0001,009,0002,289,664
5May 12, 2024 16:4643,64566,507,96237,398,0001,010,0002,289,664
6May 12, 2024 16:4643,66660,987,93937,415,0001,011,0002,289,664
7May 12, 2024 16:4643,77266,551,59037,506,0001,013,0002,289,664
8May 12, 2024 16:4643,83259,493,53837,557,0001,015,0002,289,664
9May 12, 2024 16:4643,89864,846,65937,614,0001,016,0002,289,664
10May 12, 2024 16:4643,94061,806,00137,676,000991,0002,289,664
11May 12, 2024 16:4643,96569,200,69438,689,00002,289,664
12May 12, 2024 16:4644,00863,912,42137,734,000993,0002,277,376