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 listApr 19, 2026 00:04Victor MerckléVictor MerckléScore: 57,228Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 19, 2026 00:0457,01972,768,44747,167,0003,010,0002,502,656
2Apr 19, 2026 00:0457,22875,982,76248,347,0002,014,0002,310,144
3Apr 19, 2026 00:0457,50572,642,92648,580,0002,024,0002,519,040