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 9, 2026 06:32Karthik ReddyKarthik ReddyScore: 2,540Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 06:372,51310,894,2842,212,000024,576
2Oct 9, 2026 06:372,52110,904,0072,219,000024,576
3Oct 9, 2026 06:372,53510,912,3022,231,000024,576
4Oct 9, 2026 06:372,53911,069,5862,235,000024,576
5Oct 9, 2026 06:372,54010,858,2732,236,000024,576
6Oct 9, 2026 06:372,54410,860,1932,239,000024,576
7Oct 9, 2026 06:372,54610,802,2532,241,000024,576
8Oct 9, 2026 06:372,54610,850,9862,241,000024,576
9Oct 9, 2026 06:372,56710,747,1582,259,000024,576