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 18, 2024 10:22Ivan BessonovIvan BessonovScore: 21,583Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 10:2221,46645,109,84416,902,0001,988,0002,289,664
2May 18, 2024 10:2221,48944,689,42316,920,0001,990,0002,445,312
3May 18, 2024 10:2221,49245,697,43517,918,000995,0002,445,312
4May 18, 2024 10:2221,49348,733,16117,919,000995,0002,289,664
5May 18, 2024 10:2221,50146,887,66517,870,0001,051,0002,289,664
6May 18, 2024 10:2221,50544,778,48417,873,0001,051,0002,289,664
7May 18, 2024 10:2221,58341,722,30316,994,0001,999,0002,289,664
8May 18, 2024 10:2221,62342,144,08418,027,0001,001,0002,273,280
9May 18, 2024 10:2221,63945,101,72917,038,0002,004,0002,445,312
10May 18, 2024 10:2222,72491,730,07019,996,85102,174,976
11May 18, 2024 10:2222,85387,316,72220,110,72102,293,760
12May 18, 2024 10:2222,861108,337,18120,117,32602,297,856