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 21, 2024 13:55Ivan BessonovIvan BessonovScore: 15,401Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 13:5515,30034,406,71512,429,0001,035,0002,351,104
2May 21, 2024 13:5515,34436,178,34812,465,0001,038,0002,289,664
3May 21, 2024 13:5515,36729,393,28412,483,0001,040,0002,461,696
4May 21, 2024 13:5515,37632,751,11012,491,0001,040,0002,347,008
5May 21, 2024 13:5515,38335,401,61412,496,0001,041,0002,342,912
6May 21, 2024 13:5515,38536,691,05913,539,00002,351,104
7May 21, 2024 13:5515,40136,173,00912,511,0001,042,0002,289,664
8May 21, 2024 13:5515,40936,490,44012,517,0001,043,0002,351,104
9May 21, 2024 13:5515,54980,400,90113,682,97902,195,456
10May 21, 2024 13:5515,617100,583,34313,743,21002,191,360
11May 21, 2024 13:5515,72959,910,97613,841,82402,195,456
12May 21, 2024 13:5515,98433,924,22112,057,0002,009,0002,289,664