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 28, 2026 20:48zielajzielajScore: 2,697Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2026 20:502,59510,013,8612,284,00002,113,536
2Jun 28, 2026 20:502,59710,116,7752,286,00002,113,536
3Jun 28, 2026 20:502,6889,888,9242,366,00002,113,536
4Jun 28, 2026 20:502,69010,194,5772,368,00002,113,536
5Jun 28, 2026 20:502,69710,463,0842,374,00002,113,536
6Jun 28, 2026 20:502,70110,093,5332,377,00002,113,536
7Jun 28, 2026 20:503,24610,444,4532,857,00002,113,536
8Jun 28, 2026 20:503,26510,587,1602,874,00002,113,536
9Jun 28, 2026 20:507,342,9926,470,057,5076,460,833,0001,000,0002,113,536