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:19Ivan BessonovIvan BessonovScore: 28,348Success
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:1922,35195,964,51019,669,13902,174,976
2May 18, 2024 10:1922,36463,678,74719,680,23602,289,664
3May 18, 2024 10:1922,380100,337,07919,694,46902,289,664
4May 18, 2024 10:1928,28850,402,54322,902,0001,991,0002,437,120
5May 18, 2024 10:1928,30551,292,97723,912,000996,0002,289,664
6May 18, 2024 10:1928,33247,642,82722,938,0001,994,0002,437,120
7May 18, 2024 10:1928,34852,644,12623,949,000997,0002,437,120
8May 18, 2024 10:1928,37753,133,52722,975,0001,997,0002,441,216
9May 18, 2024 10:1928,38652,698,15622,982,0001,998,0002,289,664
10May 18, 2024 10:1928,44241,165,37323,027,0002,002,0002,289,664
11May 18, 2024 10:1928,49452,724,57424,072,0001,003,0002,449,408
12May 18, 2024 10:1928,65747,335,57724,210,0001,008,0002,289,664