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 13, 2023 20:41gchebanovgchebanovScore: 43,857Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 20:4143,59462,383,25337,354,0001,009,0002,445,312
2Jul 13, 2023 20:4143,69966,313,14038,455,00002,449,408
3Jul 13, 2023 20:4143,70960,502,18637,452,0001,012,0002,293,760
4Jul 13, 2023 20:4143,74562,219,38037,483,0001,013,0002,453,504
5Jul 13, 2023 20:4143,75163,629,44137,488,0001,013,0002,297,856
6Jul 13, 2023 20:4143,85261,739,38337,575,0001,015,0002,453,504
7Jul 13, 2023 20:4143,85763,827,97438,594,00002,293,760
8Jul 13, 2023 20:4144,30660,622,31436,990,0001,999,0002,293,760
9Jul 13, 2023 20:4144,41366,229,37837,079,0002,004,0002,293,760
10Jul 13, 2023 20:4145,332112,857,18439,892,30502,293,760
11Jul 13, 2023 20:4145,497109,336,94740,037,16202,281,472
12Jul 13, 2023 20:4165,417111,293,07657,566,93802,289,664