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 5, 2024 08:31Ivan BessonovIvan BessonovScore: 47,850Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:3147,63467,560,81040,896,0001,022,0002,289,664
2May 5, 2024 08:3147,735109,564,85942,006,77302,260,992
3May 5, 2024 08:3147,78364,883,04740,047,0002,002,0002,269,184
4May 5, 2024 08:3147,79562,058,34041,059,0001,001,0002,265,088
5May 5, 2024 08:3147,81773,175,40440,076,0002,003,0002,289,664
6May 5, 2024 08:3147,84070,442,59240,095,0002,004,0002,289,664
7May 5, 2024 08:3147,85064,832,06040,103,0002,005,0002,269,184
8May 5, 2024 08:3147,86870,363,57040,119,0002,005,0002,289,664
9May 5, 2024 08:3147,87670,097,79840,125,0002,006,0002,289,664
10May 5, 2024 08:3147,93366,040,27640,173,0002,008,0002,289,664
11May 5, 2024 08:3147,98598,756,52442,226,81402,269,184
12May 5, 2024 08:3148,063114,185,03842,295,28902,252,800