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 18, 2024 10:24Ivan BessonovIvan BessonovScore: 21,478Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 10:2421,29845,536,87317,701,0001,041,0002,289,664
2May 18, 2024 10:2421,43942,527,42618,866,00002,289,664
3May 18, 2024 10:2421,45941,444,65416,897,0001,987,0002,289,664
4May 18, 2024 10:2421,46843,420,88118,892,00002,289,664
5May 18, 2024 10:2421,47443,101,63717,903,000994,0002,453,504
6May 18, 2024 10:2421,47745,867,74517,906,000994,0002,445,312
7May 18, 2024 10:2421,47845,689,91018,901,00002,289,664
8May 18, 2024 10:2421,48844,920,49416,919,0001,990,0002,289,664
9May 18, 2024 10:2421,56052,170,50916,976,0001,997,0002,449,408
10May 18, 2024 10:2422,32183,877,93919,642,06802,293,760
11May 18, 2024 10:2422,35895,080,97819,674,97502,293,760
12May 18, 2024 10:2422,51477,884,90119,812,32202,297,856