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 30, 2026 16:05Charles CabergsCharles CabergsScore: 30,381Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 16:0530,15747,262,08620,415,0006,124,0002,527,232stderr
2Apr 30, 2026 16:0530,30447,670,70317,437,0009,231,0002,527,232stderr
3Apr 30, 2026 16:0530,34043,061,50119,512,0007,188,0002,326,528stderr
4Apr 30, 2026 16:0530,35243,755,06619,519,0007,191,0002,306,048stderr
5Apr 30, 2026 16:0530,38148,458,31820,566,0006,170,0002,539,520stderr
6Apr 30, 2026 16:0530,46248,417,13921,652,0005,155,0002,523,136stderr
7Apr 30, 2026 16:0530,47941,571,46521,855,0004,967,0002,527,232stderr
8Apr 30, 2026 16:0530,48645,496,01022,854,0003,974,0002,510,848stderr
9Apr 30, 2026 16:0530,53142,637,87520,898,0005,970,0002,527,232stderr