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 listApr 29, 2026 12:54olliecrowolliecrowScore: 12,470Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 12:5512,35026,483,1338,892,0001,976,0002,342,912
2Apr 29, 2026 12:5512,42528,756,2238,946,0001,988,0002,338,816
3Apr 29, 2026 12:5512,43432,746,7149,848,0001,094,0002,330,624
4Apr 29, 2026 12:5512,47031,047,5679,977,000997,0002,338,816
5Apr 29, 2026 12:5512,47029,293,3499,977,000997,0002,330,624
6Apr 29, 2026 12:5512,47028,943,7198,979,0001,995,0002,342,912
7Apr 29, 2026 12:5512,47529,230,9128,982,0001,996,0002,330,624
8Apr 29, 2026 12:5513,57625,631,9079,956,0001,991,0002,318,336
9Apr 29, 2026 12:5513,79732,836,10110,119,0002,023,0002,330,624