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:21Ivan BessonovIvan BessonovScore: 16,055Success
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:2115,41835,521,80412,525,0001,043,0002,289,664
2May 20, 2024 19:2115,43028,210,68412,534,0001,044,0002,289,664
3May 20, 2024 19:2115,44434,164,32212,546,0001,045,0002,347,008
4May 20, 2024 19:2115,51533,450,68813,653,00002,289,664
5May 20, 2024 19:2115,51634,693,71512,604,0001,050,0002,347,008
6May 20, 2024 19:2115,52232,345,81612,609,0001,050,0002,289,664
7May 20, 2024 19:2116,05535,551,37812,110,0002,018,0002,285,568
8May 20, 2024 19:2116,06032,517,31712,114,0002,019,0002,334,720
9May 20, 2024 19:2116,10180,230,74414,168,46102,195,456
10May 20, 2024 19:2116,11836,770,29814,184,00002,289,664
11May 20, 2024 19:2116,17472,279,64914,233,33702,322,432
12May 20, 2024 19:2116,98080,508,34414,942,54702,195,456