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 12, 2024 16:43Ivan BessonovIvan BessonovScore: 43,891Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2024 16:4340,984102,835,88836,065,70402,260,992
2May 12, 2024 16:4341,020102,501,93136,097,83602,256,896
3May 12, 2024 16:4341,04689,377,49736,120,47402,256,896
4May 12, 2024 16:4343,73659,907,38637,476,0001,012,0002,289,664
5May 12, 2024 16:4343,79868,097,95737,528,0001,014,0002,265,088
6May 12, 2024 16:4343,84060,700,98537,564,0001,015,0002,289,664
7May 12, 2024 16:4343,89165,354,63037,608,0001,016,0002,289,664
8May 12, 2024 16:4343,92761,796,17637,639,0001,017,0002,277,376
9May 12, 2024 16:4343,96869,778,85138,692,00002,289,664
10May 12, 2024 16:4344,02864,593,77037,726,0001,019,0002,273,280
11May 12, 2024 16:4344,06364,835,26838,775,00002,289,664
12May 12, 2024 16:4344,17663,412,18736,882,0001,993,0002,277,376