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 listOct 17, 2026 06:58janwwwjanwwwScore: 3,547Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 17, 2026 07:013,48111,836,3783,064,00002,117,632
2Oct 17, 2026 07:013,48511,836,2763,067,00002,121,728
3Oct 17, 2026 07:013,48911,871,2793,071,00002,117,632
4Oct 17, 2026 07:013,49711,859,1873,078,00002,117,632
5Oct 17, 2026 07:013,54711,775,7423,122,00002,117,632
6Oct 17, 2026 07:013,59711,828,9273,166,00002,117,632
7Oct 17, 2026 07:013,62511,890,6253,190,00002,117,632
8Oct 17, 2026 07:013,63011,899,1143,195,00002,113,536
9Oct 17, 2026 07:013,75112,092,5243,301,00002,113,536