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 listDec 26, 2025 00:10vahookvahookScore: 7,605Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 26, 2025 15:557,44820,839,2285,462,0001,092,0002,473,984
2Jul 26, 2025 15:557,46723,817,9746,571,00002,478,080
3Jul 26, 2025 15:557,47025,798,4676,574,00002,269,184
4Jul 26, 2025 15:557,48425,709,4406,586,00002,469,888
5Dec 26, 2025 00:107,49123,772,4026,592,00002,539,520
6Jul 26, 2025 15:557,55121,690,0075,538,0001,107,0002,375,680
7Dec 26, 2025 00:107,60528,606,5746,692,00002,539,520
8Jul 26, 2025 15:557,60925,553,7496,696,00002,469,888
9Dec 26, 2025 00:107,62727,580,2575,594,0001,118,0002,273,280
10Jul 26, 2025 15:557,64428,116,4996,727,00002,465,792
11Jul 26, 2025 15:557,67024,271,1235,625,0001,125,0002,465,792
12Jul 26, 2025 15:557,67821,022,3886,757,00002,531,328