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 7, 2026 17:16b pb pScore: 2,630,085Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2026 17:162,610,6392,328,089,9392,243,401,00053,961,0002,326,528
2Apr 7, 2026 17:162,630,0852,340,579,4172,266,507,00047,968,0002,433,024
3Apr 7, 2026 17:162,665,7242,381,241,6292,297,902,00047,935,0002,285,568