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 26, 2026 05:02olliecrowolliecrowScore: 12,137Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 05:0512,06827,666,2799,558,0001,062,0002,342,912
2Apr 26, 2026 05:0512,07927,810,3519,567,0001,063,0002,326,528
3Apr 26, 2026 05:0512,10023,909,6829,584,0001,064,0002,428,928
4Apr 26, 2026 05:0512,11727,436,1299,597,0001,066,0002,334,720
5Apr 26, 2026 05:0512,13730,515,5689,613,0001,068,0002,326,528
6Apr 26, 2026 05:0512,14228,835,2699,617,0001,068,0002,330,624
7Apr 26, 2026 05:0512,21529,225,4459,675,0001,075,0002,334,720
8Apr 26, 2026 05:0512,24326,097,5989,697,0001,077,0002,338,816
9Apr 26, 2026 05:0512,35631,593,5808,897,0001,977,0002,338,816