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 listSep 12, 2026 09:03Haha ExpertHaha ExpertError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2026 09:050122,464,563114,028,00002,117,632expected "51090461578163 ", got "51090461577784 "
2Sep 12, 2026 09:05129,075122,068,272113,586,00002,117,632
3Sep 12, 2026 09:05129,754122,698,520113,164,0001,020,0002,117,632
4Sep 12, 2026 09:05129,792122,722,810114,217,00002,117,632
5Sep 12, 2026 09:05129,965122,880,365114,370,00002,117,632
6Sep 12, 2026 09:05130,146123,048,132113,529,0001,000,0002,117,632
7Sep 12, 2026 09:05130,173123,035,508114,553,00002,117,632
8Sep 12, 2026 09:05130,364123,142,597114,721,00002,117,632
9Sep 12, 2026 09:05130,693123,713,302115,010,00002,117,632