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 5, 2024 08:33Ivan BessonovIvan BessonovScore: 47,899Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:3347,65965,176,35139,943,0001,997,0002,289,664
2May 5, 2024 08:3347,68363,674,94940,962,000999,0002,289,664
3May 5, 2024 08:3347,721109,044,88841,994,52202,269,184
4May 5, 2024 08:3347,733104,830,59542,004,66702,265,088
5May 5, 2024 08:3347,75769,902,21740,025,0002,001,0002,289,664
6May 5, 2024 08:3347,82865,472,10640,085,0002,004,0002,289,664
7May 5, 2024 08:3347,89966,756,05141,148,0001,003,0002,289,664
8May 5, 2024 08:3347,96867,713,50140,202,0002,010,0002,265,088
9May 5, 2024 08:3348,023102,746,33942,260,56102,265,088
10May 5, 2024 08:3348,03466,678,95840,258,0002,012,0002,289,664
11May 5, 2024 08:3348,09763,496,02640,310,0002,015,0002,523,136
12May 5, 2024 08:3348,15767,939,95142,378,00002,265,088