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 28, 2022 08:10Yuriy LyfenkoYuriy LyfenkoScore: 28,470Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 08:1028,30953,661,07923,916,000996,0002,392,064
2Dec 28, 2022 08:1028,36852,276,20223,966,000998,0002,527,232
3Dec 28, 2022 08:1028,37456,608,98822,972,0001,997,0002,392,064
4Dec 28, 2022 08:1028,37650,913,51723,973,000998,0002,527,232
5Dec 28, 2022 08:1028,40154,778,70522,994,0001,999,0002,265,088
6Dec 28, 2022 08:1028,41948,348,32523,009,0002,000,0002,392,064
7Dec 28, 2022 08:1028,47054,750,15923,050,0002,004,0002,400,256
8Dec 28, 2022 08:1028,49549,494,97724,073,0001,003,0002,392,064
9Dec 28, 2022 08:1028,61750,680,83424,176,0001,007,0002,265,088
10Dec 28, 2022 08:1029,37692,219,73425,851,07202,224,128
11Dec 28, 2022 08:1029,566103,497,21426,018,24002,220,032
12Dec 28, 2022 08:1029,61390,764,41526,059,08802,244,608