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 25, 2026 14:27olliecrowolliecrowScore: 13,335Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 14:2813,26927,844,13310,616,0001,061,0002,334,720
2Apr 25, 2026 14:2813,29226,788,55310,634,0001,063,0002,531,328
3Apr 25, 2026 14:2813,30030,090,08710,640,0001,064,0002,338,816
4Apr 25, 2026 14:2813,31333,216,57410,651,0001,065,0002,519,040
5Apr 25, 2026 14:2813,33531,125,63710,669,0001,066,0002,519,040
6Apr 25, 2026 14:2813,34228,758,58010,674,0001,067,0002,519,040
7Apr 25, 2026 14:2813,46530,386,9509,875,0001,975,0002,334,720
8Apr 25, 2026 14:2813,69828,544,70310,046,0002,009,0002,347,008
9Apr 25, 2026 14:2814,72328,076,98510,964,0001,993,0002,531,328