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 listJan 20, 2026 12:23Johan SannemoJohan SannemoScore: 12,390Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 12:2312,25230,594,7419,704,0001,078,0002,289,664
2Jan 20, 2026 12:2312,38430,881,73310,898,00002,289,664
3Jan 20, 2026 12:2312,38529,279,5958,918,0001,981,0002,453,504
4Jan 20, 2026 12:2312,38935,066,9219,911,000991,0002,289,664
5Jan 20, 2026 12:2312,39033,246,0677,930,0002,973,0002,285,568
6Jan 20, 2026 12:2312,39231,549,7427,931,0002,974,0002,289,664
7Jan 20, 2026 12:2312,40026,558,8368,928,0001,984,0002,347,008
8Jan 20, 2026 12:2312,43427,452,7288,953,0001,989,0002,355,200
9Jan 20, 2026 12:2312,47628,751,4669,981,000998,0002,289,664