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 14, 2024 15:18Ivan BessonovIvan BessonovScore: 36,764Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:1831,49884,682,97527,718,34902,252,800
2May 14, 2024 15:1831,64694,845,38127,848,38402,252,800
3May 14, 2024 15:1831,64686,650,35627,848,22902,248,704
4May 14, 2024 15:1836,60554,581,12731,206,0001,006,0002,277,376
5May 14, 2024 15:1836,65553,562,25230,240,0002,016,0002,289,664
6May 14, 2024 15:1836,76160,342,01632,350,00002,277,376
7May 14, 2024 15:1836,76463,696,78132,352,00002,289,664
8May 14, 2024 15:1836,77259,148,38930,337,0002,022,0002,289,664
9May 14, 2024 15:1836,80059,203,99131,372,0001,012,0002,289,664
10May 14, 2024 15:1836,82653,736,97731,395,0001,012,0002,273,280
11May 14, 2024 15:1836,86759,138,15331,430,0001,013,0002,289,664
12May 14, 2024 15:1836,94060,216,99432,507,00002,289,664