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 21, 2025 20:50Aniruddha DebAniruddha DebScore: 115,110Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2025 20:50114,786124,041,66499,012,0002,000,0002,285,568
2Jun 21, 2025 20:50115,110124,102,796100,295,0001,002,0002,371,584
3Jun 21, 2025 20:50115,425125,021,382100,569,0001,005,0002,285,568