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 13, 2024 08:43Ivan BessonovIvan BessonovScore: 35,330Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 08:4332,00891,037,55628,167,09402,260,992
2May 13, 2024 08:4332,049105,143,69528,203,31102,248,704
3May 13, 2024 08:4332,11487,578,90328,260,23202,248,704
4May 13, 2024 08:4335,19754,714,43528,975,0001,998,0002,523,136
5May 13, 2024 08:4335,22459,229,68328,998,0001,999,0002,289,664
6May 13, 2024 08:4335,29954,773,09129,059,0002,004,0002,273,280
7May 13, 2024 08:4335,33054,058,96729,085,0002,005,0002,289,664
8May 13, 2024 08:4335,33452,799,30929,088,0002,006,0002,269,184
9May 13, 2024 08:4335,33852,646,11229,091,0002,006,0002,289,664
10May 13, 2024 08:4335,34353,010,06729,096,0002,006,0002,289,664
11May 13, 2024 08:4335,34354,093,75630,099,0001,003,0002,273,280
12May 13, 2024 08:4335,50654,083,58729,230,0002,015,0002,265,088