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 7, 2026 04:53zielajzielajScore: 3,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:553,33917,006,0961,959,000979,0002,351,104
2Feb 7, 2026 04:543,34218,157,3971,961,000980,0002,351,104
3Feb 7, 2026 04:553,34216,855,6771,961,000980,0002,342,912
4Feb 7, 2026 04:543,34420,936,4631,962,000981,0002,351,104
5Feb 7, 2026 04:543,36917,304,7981,977,000988,0002,347,008
6Feb 7, 2026 04:563,37217,364,7521,978,000989,0002,347,008
7Feb 7, 2026 04:543,37221,102,3941,978,000989,0002,347,008
8Feb 7, 2026 04:543,38219,061,3431,984,000992,0002,506,752
9Feb 7, 2026 04:533,39022,347,8581,989,000994,0002,355,200
10Feb 7, 2026 04:543,40621,144,549999,0001,998,0002,355,200
11Feb 7, 2026 04:563,44818,212,6802,023,0001,011,0002,355,200
12Feb 7, 2026 04:553,45118,146,5772,025,0001,012,0002,535,424
13Feb 7, 2026 04:543,46717,373,7592,034,0001,017,0002,347,008
14Feb 7, 2026 04:533,47020,434,7562,036,0001,018,0002,347,008
15Feb 7, 2026 04:543,47024,759,7412,036,0001,018,0002,347,008
16Feb 7, 2026 04:543,47418,009,2642,038,0001,019,0002,342,912
17Feb 7, 2026 04:563,47723,494,6282,040,0001,020,0002,355,200
18Feb 7, 2026 04:533,52319,795,7352,067,0001,033,0002,535,424
19Feb 7, 2026 04:544,06120,657,0103,574,00002,338,816
20Feb 7, 2026 04:544,22820,111,5772,481,0001,240,0002,342,912
21Feb 7, 2026 04:544,46425,287,1313,928,00002,510,848