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 4, 2026 14:52vahookvahookScore: 3,710Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 14:463,56723,034,4661,046,0002,093,0002,277,376
2Feb 4, 2026 14:463,67322,047,0722,155,0001,077,0002,498,560
3Feb 4, 2026 14:463,68019,801,9701,079,0002,159,0002,498,560
4Feb 4, 2026 14:463,70220,782,9982,172,0001,086,0002,502,656
5Feb 4, 2026 14:463,70319,770,0942,173,0001,086,0002,502,656
6Feb 4, 2026 14:463,71019,210,6922,177,0001,088,0002,498,560
7Feb 4, 2026 14:463,71022,533,6652,177,0001,088,0002,277,376
8Feb 4, 2026 14:463,71418,022,0612,179,0001,089,0002,535,424
9Feb 4, 2026 14:463,72025,121,4422,183,0001,091,0002,494,464
10Feb 4, 2026 14:523,72425,189,3322,185,0001,092,0002,277,376
11Feb 4, 2026 14:523,72419,229,8642,185,0001,092,0002,535,424
12Feb 4, 2026 14:523,90322,414,2202,290,0001,145,0002,486,272