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 21:08zielajzielajScore: 3,464Success
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 21:083,36021,310,0092,957,00002,392,064
2Feb 8, 2026 21:083,36120,675,4041,972,000986,0002,506,752
3Feb 8, 2026 21:083,36118,300,2662,958,00002,392,064
4Feb 8, 2026 21:083,36320,993,0452,959,00002,269,184
5Feb 8, 2026 21:083,38421,570,0652,978,00002,387,968
6Feb 8, 2026 21:083,41926,541,6722,006,0001,003,0002,400,256
7Feb 8, 2026 21:093,43118,281,7182,013,0001,006,0002,400,256
8Feb 8, 2026 21:083,46421,535,6312,032,0001,016,0002,531,328
9Feb 8, 2026 21:103,48215,989,1132,043,0001,021,0002,387,968
10Feb 8, 2026 21:103,48816,030,7662,046,0001,023,0002,392,064
11Feb 8, 2026 21:093,51120,677,6012,060,0001,030,0002,531,328
12Feb 8, 2026 21:103,51117,330,8222,060,0001,030,0002,396,160
13Feb 8, 2026 21:083,52316,328,4542,067,0001,033,0002,396,160
14Feb 8, 2026 21:093,68222,793,9622,160,0001,080,0002,387,968
15Feb 8, 2026 21:083,93918,457,7272,311,0001,155,0002,387,968