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 listAug 21, 2026 16:39Andrew EpsteinAndrew EpsteinScore: 43,263Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2026 16:4143,13747,782,33937,961,00002,113,536
2Aug 21, 2026 16:4143,22747,654,66538,040,00002,113,536
3Aug 21, 2026 16:4143,23547,649,72638,047,00002,113,536
4Aug 21, 2026 16:4143,25148,924,28838,061,00002,113,536
5Aug 21, 2026 16:4143,26347,704,30138,072,00002,113,536
6Aug 21, 2026 16:4143,26947,777,89138,077,00002,113,536
7Aug 21, 2026 16:4143,31247,663,53038,115,00002,113,536
8Aug 21, 2026 16:4143,33647,777,94438,136,00002,113,536
9Aug 21, 2026 16:4143,36347,764,44338,160,00002,113,536