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 listDec 19, 2025 11:13Wookyung JeongWookyung JeongScore: 6,807,851Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2025 11:136,763,0805,981,107,1575,947,513,0003,997,0002,277,376
2Dec 19, 2025 11:136,771,7225,985,592,5315,958,116,000999,0002,277,376
3Dec 19, 2025 11:136,794,7486,007,414,8645,979,378,00002,277,376
4Dec 19, 2025 11:136,797,9686,008,642,8315,980,213,0001,999,0002,277,376
5Dec 19, 2025 11:136,807,8516,017,496,8185,988,910,0001,999,0002,277,376
6Dec 19, 2025 11:136,819,1156,025,499,7235,996,824,0003,997,0002,277,376
7Dec 19, 2025 11:136,832,3826,038,671,6256,009,498,0002,998,0002,277,376
8Dec 19, 2025 11:136,833,1766,038,472,1266,012,196,000999,0002,523,136
9Dec 19, 2025 11:136,862,2066,064,110,7586,033,743,0004,998,0002,269,184