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 28, 2026 20:08olliecrowolliecrowScore: 26,815Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 20:1126,66731,399,21722,447,0001,020,0002,359,296
2Apr 28, 2026 20:1126,70931,530,64921,461,0002,043,0002,379,776
3Apr 28, 2026 20:1126,74431,517,61721,489,0002,046,0002,375,680
4Apr 28, 2026 20:1126,75331,512,13422,520,0001,023,0002,363,392
5Apr 28, 2026 20:1126,81545,616,64021,546,0002,052,0002,473,984
6Apr 28, 2026 20:1126,82931,581,65322,584,0001,026,0002,375,680
7Apr 28, 2026 20:1126,85731,762,49221,580,0002,055,0002,359,296
8Apr 28, 2026 20:1126,90531,610,83522,648,0001,029,0002,383,872
9Apr 28, 2026 20:1126,93131,655,32822,670,0001,030,0002,355,200