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 listJun 21, 2026 22:48Josu San MartinJosu San MartinScore: 28,723Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:5028,57134,159,58523,082,0002,061,0002,113,536
2Jun 21, 2026 22:5028,65034,201,87323,144,0002,068,0002,113,536
3Jun 21, 2026 22:5028,66534,263,19423,136,0002,090,0002,113,536
4Jun 21, 2026 22:5028,70634,247,02023,175,0002,087,0002,113,536
5Jun 21, 2026 22:5028,72334,291,06623,188,0002,089,0002,113,536
6Jun 21, 2026 22:5028,72834,268,85223,192,0002,089,0002,113,536
7Jun 21, 2026 22:5028,78134,344,25523,123,0002,205,0002,113,536
8Jun 21, 2026 22:5028,78434,358,44923,214,0002,116,0002,113,536
9Jun 21, 2026 22:5028,83234,317,02723,276,0002,097,0002,113,536