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 listJun 19, 2021 11:29Andrey TsvetkovAndrey TsvetkovScore: 2,272,168Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2021 11:292,258,9652,052,981,8551,987,889,00402,191,360
2Jun 19, 2021 11:292,272,1682,066,964,9501,999,507,57002,183,168
3Jun 19, 2021 11:292,277,2132,060,164,8312,003,947,19202,199,552