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 25, 2026 01:18olliecrowolliecrowScore: 12,650Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 01:1812,59325,970,7918,060,0003,022,0002,572,288stderr
2Apr 25, 2026 01:1812,59526,701,7859,069,0002,015,0002,314,240stderr
3Apr 25, 2026 01:1812,62229,654,7899,089,0002,019,0002,408,448stderr
4Apr 25, 2026 01:1812,63228,554,1239,096,0002,021,0002,400,256stderr
5Apr 25, 2026 01:1812,65031,152,7639,108,0002,024,0002,580,480stderr
6Apr 25, 2026 01:1812,81027,086,9909,224,0002,049,0002,572,288stderr
7Apr 25, 2026 01:1812,83227,606,92010,267,0001,026,0002,318,336stderr
8Apr 25, 2026 01:1812,83732,639,2869,243,0002,054,0002,564,096stderr
9Apr 25, 2026 01:1812,84030,897,31010,273,0001,027,0002,572,288stderr