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 11:58Ivan BessonovIvan BessonovScore: 16,060Success
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 11:5815,65929,936,94312,720,0001,060,0002,445,312
2May 21, 2024 11:5815,80332,018,99312,914,000993,0002,289,664
3May 21, 2024 11:5815,80628,508,88012,916,000993,0002,289,664
4May 21, 2024 11:5815,80732,833,57512,917,000993,0002,289,664
5May 21, 2024 11:5815,87078,336,77513,965,73402,203,648
6May 21, 2024 11:5815,91677,420,69114,006,42302,211,840
7May 21, 2024 11:5816,06072,872,46514,133,19102,322,432
8May 21, 2024 11:5816,10332,802,89312,147,0002,024,0002,351,104
9May 21, 2024 11:5816,28630,963,76712,285,0002,047,0002,342,912
10May 21, 2024 11:5816,30530,912,89213,324,0001,024,0002,289,664
11May 21, 2024 11:5816,35633,706,49112,337,0002,056,0002,347,008
12May 21, 2024 11:5816,50032,235,05413,483,0001,037,0002,289,664