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 22, 2026 21:43olliecrowolliecrowScore: 18,589Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 21:4418,53829,417,24315,295,0001,019,0002,330,624
2Apr 22, 2026 21:4418,54532,910,92415,300,0001,020,0002,301,952
3Apr 22, 2026 21:4418,54834,447,19715,303,0001,020,0002,555,904
4Apr 22, 2026 21:4418,58138,597,02215,330,0001,022,0002,301,952
5Apr 22, 2026 21:4418,58935,623,59715,337,0001,022,0002,297,856
6Apr 22, 2026 21:4418,59330,850,24515,340,0001,022,0002,297,856
7Apr 22, 2026 21:4418,59637,302,98515,343,0001,022,0002,297,856
8Apr 22, 2026 21:4418,71933,312,31815,444,0001,029,0002,306,048
9Apr 22, 2026 21:4418,74729,264,83215,467,0001,031,0002,301,952