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 29, 2026 03:00Charles CabergsCharles CabergsScore: 21,663Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 03:0121,49238,570,72616,923,0001,990,0002,535,424stderr
2Apr 29, 2026 03:0121,57938,108,68916,991,0001,999,0002,535,424stderr
3Apr 29, 2026 03:0121,59035,559,45816,000,0003,000,0002,535,424stderr
4Apr 29, 2026 03:0121,60539,744,86717,012,0002,001,0002,539,520stderr
5Apr 29, 2026 03:0121,66337,436,72116,054,0003,010,0002,535,424stderr
6Apr 29, 2026 03:0121,66732,826,66416,057,0003,010,0002,338,816stderr
7Apr 29, 2026 03:0121,68432,321,81817,074,0002,008,0002,531,328stderr
8Apr 29, 2026 03:0121,69238,363,59917,080,0002,009,0002,531,328stderr
9Apr 29, 2026 03:0121,79638,284,91516,153,0003,028,0002,539,520stderr