28
计算Phi(非Pi)
不,我不是说ϕ = 1.618...和π = 3.14159...。我的意思是功能。 φ(x)的是一个整数小于或等于的数量x互质到x。 π(x)是小于或等于的素数x。 假设“非pi”为π̅(x),并将其定义为小于或等于的复合数x。 任务 给定一个严格的正整数x,计算φ(π̅(x))。得分以字节为单位。 例子 每行包括输入(从1到100,包括1和100),以及由空格分隔的相应输出。 1 0 2 0 3 0 4 1 5 1 6 1 7 1 8 2 9 2 10 4 11 4 12 2 13 2 14 6 15 4 16 6 17 6 18 4 19 4 …
73
code-golf
sequence
primes
number-theory
code-golf
decision-problem
code-golf
date
code-golf
typography
code-golf
math
number
multiple-holes
code-golf
quine
code-golf
string
syntax
code-golf
math
primes
rational-numbers
code-golf
graphical-output
image-processing
code-golf
kolmogorov-complexity
music
audio
code-golf
string
code-golf
math
geometry
code-golf
math
sequence
combinatorics
code-golf
game
grid
board-game
code-golf
restricted-source
array-manipulation
source-layout
code-golf
base-conversion
binary
code-golf
math
physics
code-golf
math
number
date
expression-building
code-golf
array-manipulation
graph-theory
decision-problem
popularity-contest
error-correction
code-golf
kolmogorov-complexity
geometry
grid
code-challenge
arithmetic
combinatorics
set-partitions
code-golf
kolmogorov-complexity
sequence
fibonacci
code-golf
restricted-source
pristine-programming
code-golf
code-golf
string
kolmogorov-complexity
code-golf
arithmetic
code-golf
string
parsing
code-golf
code-golf
sorting
counting
permutations
3d
code-golf
code-golf
ascii-art
music
code-golf
string
code-golf
string
ascii-art
code-golf
string
code-golf
quine
polyglot
code-golf
math
string
code-golf
internet