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 24, 2026 10:20olliecrowolliecrowScore: 12,809Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 10:2112,74527,334,4009,177,0002,039,0002,400,256
2Apr 24, 2026 10:2112,77026,182,02910,217,0001,021,0002,514,944
3Apr 24, 2026 10:2112,77627,596,84010,221,0001,022,0002,334,720
4Apr 24, 2026 10:2112,79433,866,11910,236,0001,023,0002,306,048
5Apr 24, 2026 10:2112,80927,075,35310,248,0001,024,0002,306,048
6Apr 24, 2026 10:2112,82733,232,45010,262,0001,026,0002,560,000
7Apr 24, 2026 10:2112,84532,537,7649,249,0002,055,0002,306,048
8Apr 24, 2026 10:2112,95427,811,56911,400,00002,306,048
9Apr 24, 2026 10:2112,96431,336,18510,372,0001,037,0002,301,952