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 20, 2026 19:56A_ShamanA_ShamanScore: 160,792Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2026 19:59160,270150,297,372137,815,0003,223,0002,113,536
2Jun 20, 2026 19:59160,460150,361,200138,029,0003,176,0002,113,536
3Jun 20, 2026 19:59160,554150,466,941138,152,0003,136,0002,113,536
4Jun 20, 2026 19:59160,709150,680,732138,204,0003,220,0002,117,632
5Jun 20, 2026 19:59160,792150,673,472138,393,0003,104,0002,117,632
6Jun 20, 2026 19:59160,925150,801,735138,401,0003,213,0002,113,536
7Jun 20, 2026 19:59160,961150,872,224138,403,0003,243,0002,117,632
8Jun 20, 2026 19:59160,962150,834,425138,431,0003,216,0002,113,536
9Jun 20, 2026 19:59161,515151,395,939138,848,0003,286,0002,113,536