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 16, 2024 19:17Ivan BessonovIvan BessonovScore: 31,235Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 19:1727,924101,928,23924,572,87202,256,896
2May 16, 2024 19:1727,97386,390,58624,616,24002,252,800
3May 16, 2024 19:1727,99085,362,39024,631,55402,265,088
4May 16, 2024 19:1731,10146,809,01526,356,0001,013,0002,277,376
5May 16, 2024 19:1731,14358,194,76626,391,0001,015,0002,289,664
6May 16, 2024 19:1731,17554,233,06926,418,0001,016,0002,289,664
7May 16, 2024 19:1731,23560,452,09326,469,0001,018,0002,289,664
8May 16, 2024 19:1731,27448,271,19326,502,0001,019,0002,289,664
9May 16, 2024 19:1731,27749,519,76126,505,0001,019,0002,273,280
10May 16, 2024 19:1731,29957,186,06227,543,00002,289,664
11May 16, 2024 19:1731,31453,785,72225,588,0001,968,0002,289,664
12May 16, 2024 19:1731,32451,211,23226,545,0001,020,0002,289,664