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 21:31Ivan BessonovIvan BessonovScore: 30,747Success
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 21:3127,22387,518,95923,956,42402,260,992
2May 16, 2024 21:3127,32482,708,13724,044,75902,265,088
3May 16, 2024 21:3127,35294,444,09524,069,45802,392,064
4May 16, 2024 21:3130,63849,554,38324,964,0001,997,0002,289,664
5May 16, 2024 21:3130,65549,684,89925,977,000999,0002,289,664
6May 16, 2024 21:3130,72448,941,62325,035,0002,002,0002,289,664
7May 16, 2024 21:3130,74751,911,87525,053,0002,004,0002,273,280
8May 16, 2024 21:3130,79554,294,51626,097,0001,003,0002,277,376
9May 16, 2024 21:3130,82348,056,15226,120,0001,004,0002,269,184
10May 16, 2024 21:3130,83048,912,56226,126,0001,004,0002,289,664
11May 16, 2024 21:3130,90750,019,69125,184,0002,014,0002,527,232
12May 16, 2024 21:3131,03948,579,65425,291,0002,023,0002,269,184