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 listJul 24, 2023 14:42gchebanovgchebanovScore: 41,161Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 14:4241,06758,986,16034,132,0002,007,0002,269,184
2Jul 24, 2023 14:4241,07662,662,13132,131,0004,016,0002,269,184
3Jul 24, 2023 14:4241,09462,060,40332,145,0004,018,0002,510,848
4Jul 24, 2023 14:4241,09561,145,22934,155,0002,009,0002,285,568
5Jul 24, 2023 14:4241,10865,696,35932,156,0004,019,0002,273,280
6Jul 24, 2023 14:4241,11457,946,29033,165,0003,015,0002,527,232
7Jul 24, 2023 14:4241,16160,725,65033,204,0003,018,0002,355,200
8Jul 24, 2023 14:4241,17356,575,08733,213,0003,019,0002,498,560
9Jul 24, 2023 14:4241,30961,612,26934,333,0002,019,0002,510,848
10Jul 24, 2023 14:4242,43296,943,58537,339,87702,232,320
11Jul 24, 2023 14:4242,653102,129,08337,535,03402,211,840
12Jul 24, 2023 14:4242,826114,866,39437,686,93502,220,032