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 listAug 15, 2026 19:16Tomislav TunkovicTomislav TunkovicScore: 2,695Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2026 19:182,67010,542,1772,350,000020,480
2Aug 15, 2026 19:182,67110,506,0222,351,000020,480
3Aug 15, 2026 19:182,67710,590,4642,356,000020,480
4Aug 15, 2026 19:182,68710,549,1812,365,000020,480
5Aug 15, 2026 19:182,69510,511,8932,372,000020,480
6Aug 15, 2026 19:182,70510,472,4642,381,000020,480
7Aug 15, 2026 19:182,71310,519,5692,388,000020,480
8Aug 15, 2026 19:182,71710,701,9112,391,000020,480
9Aug 15, 2026 19:182,72010,587,0812,394,000020,480