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 5, 2026 19:47vahookvahookScore: 3,488Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 19:453,45722,206,7991,014,0002,028,0002,281,472
2Feb 5, 2026 19:473,46018,285,0261,015,0002,030,0002,281,472
3Feb 5, 2026 19:463,46017,528,8631,015,0002,030,0002,494,464
4Feb 5, 2026 19:463,46415,020,1561,016,0002,032,0002,502,656
5Feb 5, 2026 19:463,46716,317,3031,017,0002,034,0002,506,752
6Feb 5, 2026 19:493,46820,214,4411,017,0002,035,0002,494,464
7Feb 5, 2026 19:453,47018,019,4861,018,0002,036,0002,281,472
8Feb 5, 2026 19:473,48220,900,4771,021,0002,043,0002,498,560
9Feb 5, 2026 19:493,48226,218,4841,021,0002,043,0002,498,560
10Feb 5, 2026 19:453,48518,172,2221,022,0002,045,0002,277,376
11Feb 5, 2026 19:453,48821,326,7341,023,0002,046,0002,277,376
12Feb 5, 2026 19:493,48923,850,2441,023,0002,047,0002,498,560
13Feb 5, 2026 19:453,49919,093,3871,026,0002,053,0002,498,560
14Feb 5, 2026 19:473,50119,140,2891,027,0002,054,0002,498,560
15Feb 5, 2026 19:453,50617,368,0311,028,0002,057,0002,494,464
16Feb 5, 2026 19:453,51115,818,2721,030,0002,060,0002,494,464
17Feb 5, 2026 19:473,51124,447,4391,030,0002,060,0002,502,656
18Feb 5, 2026 19:473,51819,588,4881,032,0002,064,0002,486,272
19Feb 5, 2026 19:453,51921,190,8261,032,0002,065,0002,498,560
20Feb 5, 2026 19:473,53223,641,5511,036,0002,072,0002,490,368
21Feb 5, 2026 19:453,53516,794,6661,037,0002,074,0002,498,560