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:18Ivan BessonovIvan BessonovScore: 31,257Success
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:1827,89289,457,06024,544,93302,252,800
2May 16, 2024 19:1828,00990,078,81724,648,18902,260,992
3May 16, 2024 19:1828,01189,313,91724,649,39402,256,896
4May 16, 2024 19:1831,14350,993,09826,391,0001,015,0002,289,664
5May 16, 2024 19:1831,20750,540,83627,462,00002,289,664
6May 16, 2024 19:1831,21557,153,72726,452,0001,017,0002,269,184
7May 16, 2024 19:1831,25753,142,48926,488,0001,018,0002,269,184
8May 16, 2024 19:1831,31448,758,04826,536,0001,020,0002,289,664
9May 16, 2024 19:1831,33150,810,65126,550,0001,021,0002,359,296
10May 16, 2024 19:1831,33549,855,86126,554,0001,021,0002,277,376
11May 16, 2024 19:1831,37556,368,33027,610,00002,289,664
12May 16, 2024 19:1831,37750,360,33826,590,0001,022,0002,289,664