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 listJan 25, 2026 23:30zielajzielajScore: 3,485Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 25, 2026 23:313,44016,543,3902,018,0001,009,0002,277,376
2Jan 25, 2026 23:303,44723,398,3612,022,0001,011,0002,355,200
3Jan 25, 2026 23:313,45116,559,1252,025,0001,012,0002,351,104
4Jan 25, 2026 23:343,46120,674,6542,031,0001,015,0002,359,296
5Jan 25, 2026 23:313,46521,046,6711,016,0002,033,0002,461,696
6Jan 25, 2026 23:303,48416,914,8281,022,0002,044,0002,359,296
7Jan 25, 2026 23:303,48519,502,7842,045,0001,022,0002,359,296
8Jan 25, 2026 23:343,48919,184,2671,023,0002,047,0002,355,200
9Jan 25, 2026 23:303,51522,997,3752,062,0001,031,0002,367,488
10Jan 25, 2026 23:303,60121,250,4752,113,0001,056,0002,359,296
11Jan 25, 2026 23:343,61822,195,8712,123,0001,061,0002,355,200
12Jan 25, 2026 23:303,62022,624,0781,062,0002,124,0002,359,296