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 08:44olliecrowolliecrowScore: 13,635Success
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 08:5013,45919,770,8419,691,0002,153,0002,547,712
2Apr 30, 2026 08:5013,46919,876,1979,698,0002,155,0002,523,136
3Apr 30, 2026 08:5013,56220,066,4859,946,0001,989,0002,535,424
4Apr 30, 2026 08:5013,60220,035,9369,975,0001,995,0002,527,232
5Apr 30, 2026 08:5013,63520,049,1448,727,0003,272,0002,543,616
6Apr 30, 2026 08:5013,64420,054,87911,007,0001,000,0002,351,104
7Apr 30, 2026 08:5013,64720,153,60410,009,0002,001,0002,347,008
8Apr 30, 2026 08:5013,65920,083,0329,015,0003,005,0002,387,968
9Apr 30, 2026 08:5014,33219,808,35210,320,0002,293,0002,449,408