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 13:00Wookyung JeongWookyung JeongScore: 10,076,699Success
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 13:009,978,2648,819,535,9178,735,914,00044,958,0002,379,776
2Dec 19, 2025 13:0010,076,6998,909,175,4808,820,567,00046,928,0002,269,184
3Dec 19, 2025 13:0010,139,2158,968,419,9498,880,573,00041,936,0002,367,488