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 listMar 28, 2026 10:19Dominique GarmierDominique GarmierScore: 12,395Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 30, 2026 06:0412,22327,038,1869,681,0001,075,0002,355,200
2Mar 28, 2026 10:1912,26730,795,6629,716,0001,079,0002,355,200
3Mar 30, 2026 02:5512,36628,010,6248,904,0001,978,0002,342,912
4Mar 30, 2026 02:5512,38928,407,6238,920,0001,982,0002,285,568
5Mar 30, 2026 06:0412,39531,195,22210,908,00002,289,664
6Mar 28, 2026 10:1912,40727,282,1649,926,000992,0002,289,664
7Mar 30, 2026 02:5512,40730,607,1598,933,0001,985,0002,342,912
8Mar 30, 2026 06:0412,42229,978,6749,938,000993,0002,347,008
9Mar 28, 2026 10:1912,43430,523,5248,953,0001,989,0002,351,104