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:55Ivan BessonovIvan BessonovScore: 30,725Success
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:5530,56453,463,18925,900,000996,0002,289,664
2May 16, 2024 19:5530,57551,985,35926,906,00002,289,664
3May 16, 2024 19:5530,58355,714,32624,920,0001,993,0002,289,664
4May 16, 2024 19:5530,64748,132,78424,972,0001,997,0002,289,664
5May 16, 2024 19:5530,65156,366,42624,975,0001,998,0002,273,280
6May 16, 2024 19:5530,71450,250,94025,026,0002,002,0002,523,136
7May 16, 2024 19:5530,72553,652,71425,036,0002,002,0002,269,184
8May 16, 2024 19:5530,73851,831,42725,046,0002,003,0002,273,280
9May 16, 2024 19:5530,80148,448,53125,098,0002,007,0002,273,280
10May 16, 2024 19:5533,42387,497,42329,411,83902,260,992
11May 16, 2024 19:5533,43995,861,10629,426,03702,256,896
12May 16, 2024 19:5533,456104,400,14129,441,07702,265,088