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:41Ivan BessonovIvan BessonovScore: 15,792Success
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:4115,43833,095,14612,540,0001,045,0002,347,008
2May 20, 2024 19:4115,50336,131,93812,594,0001,049,0002,342,912
3May 20, 2024 19:4115,51529,829,23212,603,0001,050,0002,347,008
4May 20, 2024 19:4115,52430,581,09812,611,0001,050,0002,289,664
5May 20, 2024 19:4115,54132,547,03713,676,00002,338,816
6May 20, 2024 19:4115,54729,281,77612,629,0001,052,0002,347,008
7May 20, 2024 19:4115,79259,538,99613,897,15802,199,552
8May 20, 2024 19:4115,84279,012,19613,940,95502,191,360
9May 20, 2024 19:4115,90075,452,66313,991,60402,191,360
10May 20, 2024 19:4116,11935,726,97113,172,0001,013,0002,289,664
11May 20, 2024 19:4116,14132,083,84112,175,0002,029,0002,347,008
12May 20, 2024 19:4116,29730,658,11412,293,0002,048,0002,347,008