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 18, 2026 21:49Charles CabergsCharles CabergsScore: 25,885Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 21:4925,71946,882,88020,576,0002,057,0002,441,216
2Apr 18, 2026 21:4925,75944,900,16120,608,0002,060,0002,281,472
3Apr 18, 2026 21:4925,76344,299,85121,641,0001,030,0002,289,664
4Apr 18, 2026 21:4925,80047,372,60419,608,0003,096,0002,445,312
5Apr 18, 2026 21:4925,88548,994,43120,709,0002,070,0002,281,472
6Apr 18, 2026 21:4926,02547,571,72521,907,000995,0002,437,120
7Apr 18, 2026 21:4926,02854,080,08920,914,0001,991,0002,289,664
8Apr 18, 2026 21:4926,03551,089,36920,919,0001,992,0002,281,472
9Apr 18, 2026 21:4926,14046,177,97121,003,0002,000,0002,523,136