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 20:51Ivan BessonovIvan BessonovScore: 31,220Success
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 20:5130,94551,445,35526,224,0001,008,0002,277,376
2May 16, 2024 20:5131,03149,991,40027,307,00002,289,664
3May 16, 2024 20:5131,12054,421,15327,386,00002,289,664
4May 16, 2024 20:5131,14959,082,64626,396,0001,015,0002,289,664
5May 16, 2024 20:5131,15154,649,36127,413,00002,273,280
6May 16, 2024 20:5131,20952,046,61427,464,00002,273,280
7May 16, 2024 20:5131,22050,651,84626,457,0001,017,0002,289,664
8May 16, 2024 20:5131,25147,853,65126,483,0001,018,0002,289,664
9May 16, 2024 20:5131,29054,684,14526,516,0001,019,0002,289,664
10May 16, 2024 20:5142,67597,412,51937,554,42202,260,992
11May 16, 2024 20:5142,78399,833,02437,649,15102,256,896
12May 16, 2024 20:5142,912105,794,28337,762,72102,252,800