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 19, 2024 07:34Ivan BessonovIvan BessonovScore: 17,130Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 07:3416,45133,469,90813,443,0001,034,0002,289,664
2May 19, 2024 07:3416,46334,537,45513,453,0001,034,0002,326,528
3May 19, 2024 07:3416,47434,158,20413,462,0001,035,0002,289,664
4May 19, 2024 07:3416,53430,875,19914,550,00002,289,664
5May 19, 2024 07:3416,97238,317,15112,944,0001,991,0002,289,664
6May 19, 2024 07:3417,02039,425,02512,981,0001,997,0002,334,720
7May 19, 2024 07:3417,13093,713,60015,074,51902,187,264
8May 19, 2024 07:3417,14436,598,84013,076,0002,011,0002,322,432
9May 19, 2024 07:3417,19531,803,83313,115,0002,017,0002,289,664
10May 19, 2024 07:3417,20035,314,76614,127,0001,009,0002,338,816
11May 19, 2024 07:3417,35867,284,15215,275,26902,256,896
12May 19, 2024 07:3417,63965,616,85615,522,42002,179,072