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:10Ivan BessonovIvan BessonovScore: 26,101Success
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:1026,02649,119,38521,908,000995,0002,289,664
2May 16, 2024 20:1026,02848,628,95120,914,0001,991,0002,289,664
3May 16, 2024 20:1026,03448,621,73221,914,000996,0002,277,376
4May 16, 2024 20:1026,07255,942,63220,948,0001,995,0002,281,472
5May 16, 2024 20:1026,09043,829,06920,963,0001,996,0002,281,472
6May 16, 2024 20:1026,09845,479,54320,969,0001,997,0002,527,232
7May 16, 2024 20:1026,10143,760,91321,971,000998,0002,392,064
8May 16, 2024 20:1026,18148,685,43722,038,0001,001,0002,289,664
9May 16, 2024 20:1026,25547,097,35821,095,0002,009,0002,289,664
10May 16, 2024 20:1028,002108,354,12324,641,48902,265,088
11May 16, 2024 20:1028,03182,339,04224,667,43102,256,896
12May 16, 2024 20:1028,09890,578,83824,726,59002,265,088