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 20, 2024 20:53Ivan BessonovIvan BessonovScore: 15,814Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:5315,78540,543,52812,899,000992,0002,347,008
2May 20, 2024 20:5315,79577,655,58513,899,54002,207,744
3May 20, 2024 20:5315,79931,791,38711,917,0001,986,0002,289,664
4May 20, 2024 20:5315,79930,485,34012,910,000993,0002,347,008
5May 20, 2024 20:5315,80240,014,06211,920,0001,986,0002,289,664
6May 20, 2024 20:5315,81434,981,42111,928,0001,988,0002,289,664
7May 20, 2024 20:5315,81433,785,31611,928,0001,988,0002,285,568
8May 20, 2024 20:5315,94385,374,07114,030,12402,191,360
9May 20, 2024 20:5316,00785,604,74214,086,10902,252,800
10May 20, 2024 20:5316,03336,587,07512,094,0002,015,0002,338,816
11May 20, 2024 20:5316,31632,997,17612,307,0002,051,0002,289,664
12May 20, 2024 20:5316,38638,938,84913,390,0001,030,0002,342,912