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 23, 2026 00:48Charles CabergsCharles CabergsScore: 24,219Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 00:4924,15537,168,15320,245,0001,012,0002,441,216
2Apr 23, 2026 00:4924,15636,166,33720,246,0001,012,0002,347,008
3Apr 23, 2026 00:4924,17040,077,35018,232,0003,038,0002,445,312
4Apr 23, 2026 00:4924,18038,137,75420,266,0001,013,0002,347,008
5Apr 23, 2026 00:4924,21937,246,34219,284,0002,029,0002,441,216
6Apr 23, 2026 00:4924,33042,518,62319,372,0002,039,0002,445,312
7Apr 23, 2026 00:4924,36734,463,28019,401,0002,042,0002,535,424
8Apr 23, 2026 00:4924,38240,913,80420,436,0001,021,0002,433,024
9Apr 23, 2026 00:4924,39240,836,37819,421,0002,044,0002,449,408