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 20, 2024 19:18Ivan BessonovIvan BessonovScore: 16,019Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 19:1815,46734,892,06112,564,0001,047,0002,342,912
2May 20, 2024 19:1815,51534,108,59612,603,0001,050,0002,289,664
3May 20, 2024 19:1815,51630,149,16612,604,0001,050,0002,342,912
4May 20, 2024 19:1815,52735,111,95812,613,0001,051,0002,453,504
5May 20, 2024 19:1815,57632,446,32912,653,0001,054,0002,347,008
6May 20, 2024 19:1815,59530,349,08613,724,00002,289,664
7May 20, 2024 19:1816,01959,589,95814,096,34002,195,456
8May 20, 2024 19:1816,05671,949,69714,129,29902,199,552
9May 20, 2024 19:1816,10488,106,04214,171,19702,203,648
10May 20, 2024 19:1816,13537,951,63713,185,0001,014,0002,342,912
11May 20, 2024 19:1816,19134,174,80812,213,0002,035,0002,289,664
12May 20, 2024 19:1816,23136,846,16512,243,0002,040,0002,289,664