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 listFeb 8, 2026 05:12zielajzielajScore: 3,413Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 05:103,36120,946,4301,972,000986,0002,277,376
2Feb 8, 2026 05:113,37323,370,4031,979,000989,0002,383,872
3Feb 8, 2026 05:103,40321,584,1901,997,000998,0002,387,968
4Feb 8, 2026 05:103,41318,400,2512,002,0001,001,0002,277,376
5Feb 8, 2026 05:113,41325,953,9532,002,0001,001,0002,396,160
6Feb 8, 2026 05:113,41919,523,4772,006,0001,003,0002,387,968
7Feb 8, 2026 05:123,48519,366,5111,022,0002,045,0002,396,160
8Feb 8, 2026 05:123,48824,722,4942,046,0001,023,0002,281,472
9Feb 8, 2026 05:123,51821,504,7001,032,0002,064,0002,396,160