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 30, 2026 10:30olliecrowolliecrowScore: 11,997Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 10:3111,79617,022,7209,343,0001,038,0002,330,624
2Apr 30, 2026 10:3111,88217,216,1489,412,0001,045,0002,363,392
3Apr 30, 2026 10:3111,97217,021,6229,483,0001,053,0002,334,720
4Apr 30, 2026 10:3111,98417,160,20010,546,00002,560,000
5Apr 30, 2026 10:3111,99717,026,98910,558,00002,437,120
6Apr 30, 2026 10:3112,02917,239,41310,586,00002,551,808
7Apr 30, 2026 10:3112,16717,226,7039,637,0001,070,0002,330,624
8Apr 30, 2026 10:3112,18917,320,47010,727,00002,564,096
9Apr 30, 2026 10:3112,19317,238,26610,730,00002,338,816