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 27, 2026 20:03Charles CabergsCharles CabergsScore: 21,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 20:0321,59239,894,92016,001,0003,000,0002,351,104
2Apr 27, 2026 20:0321,60239,207,00516,009,0003,001,0002,531,328
3Apr 27, 2026 20:0321,61536,178,73317,020,0002,002,0002,535,424
4Apr 27, 2026 20:0321,62733,405,38016,027,0003,005,0002,310,144
5Apr 27, 2026 20:0321,71531,994,97418,105,0001,005,0002,523,136
6Apr 27, 2026 20:0321,76736,782,59816,131,0003,024,0002,535,424
7Apr 27, 2026 20:0321,78142,631,71418,160,0001,008,0002,543,616
8Apr 27, 2026 20:0321,81844,208,57816,169,0003,031,0002,543,616
9Apr 27, 2026 20:0321,88733,108,45516,220,0003,041,0002,539,520