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, 2025 23:09vahookvahookScore: 78,282Success
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, 2025 23:0978,05090,984,10968,684,00002,273,280
2Jul 13, 2025 23:0978,10595,968,58868,732,00002,490,368
3Jul 13, 2025 23:0978,11194,721,00768,738,00002,273,280
4Jul 13, 2025 23:0978,27698,295,10867,885,000998,0002,273,280
5Jul 13, 2025 23:0978,28298,448,82868,888,00002,498,560
6Jul 13, 2025 23:0978,32094,580,30268,922,00002,490,368
7Jul 13, 2025 23:0978,38294,220,84867,977,000999,0002,273,280
8Jul 13, 2025 23:0978,38893,584,10267,982,000999,0002,498,560
9Jul 13, 2025 23:0978,49393,201,46068,073,0001,001,0002,494,464