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 listJul 19, 2025 18:45vahookvahookScore: 11,773Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2025 18:4511,73226,107,60910,324,00002,465,792
2Jul 19, 2025 18:4511,73631,289,70710,328,00002,351,104
3Jul 19, 2025 18:4511,75128,187,50010,341,00002,338,816
4Jul 19, 2025 18:4511,75523,502,9499,310,0001,034,0002,338,816
5Jul 19, 2025 18:4511,77323,349,23610,360,00002,314,240
6Jul 19, 2025 18:4511,82427,674,7769,365,0001,040,0002,478,080
7Jul 19, 2025 18:4511,87227,307,3548,358,0002,089,0002,326,528
8Jul 19, 2025 18:4511,90328,244,0259,428,0001,047,0002,334,720
9Jul 19, 2025 18:4511,91925,780,19910,489,00002,273,280