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 listMar 1, 2025 16:11wainCGPwainCGPScore: 29,924Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 16:1129,72854,735,61724,149,0002,012,0002,277,376
2Mar 1, 2025 16:1129,79447,251,03124,203,0002,016,0002,289,664
3Mar 1, 2025 16:1129,79853,816,97724,205,0002,017,0002,289,664
4Mar 1, 2025 16:1129,87349,029,15424,266,0002,022,0002,289,664
5Mar 1, 2025 16:1129,92455,053,46825,321,0001,012,0002,289,664
6Mar 1, 2025 16:1129,92648,132,69424,310,0002,025,0002,273,280
7Mar 1, 2025 16:1129,93556,403,17024,317,0002,026,0002,289,664
8Mar 1, 2025 16:1130,11752,223,46325,484,0001,019,0002,289,664
9Mar 1, 2025 16:1130,14953,555,73726,531,00002,375,680