C-complete

From Esolang
Jump to navigation Jump to search

C-complete, as with plushie-complete,PrySigneToFry-complete and all other *-complete's, is a concept; it's proposed by User:Cleverxia(hence the name).

Requirements

To be C-complete, an esolang must be able to do these:

  1. print "C"
  2. print this string
  3. calculate 1+2^2+3^3^3+...+n^n^...^n(n n's) modulo n+1 for an input positive integer n
  4. do the so-called "(A*B+C)*D problem"
  5. doing any of things above infinitely

Examples

javascript is C-complete.

  • req. 1:console.log('C')
  • req. 2:console.log(atob('<insert the base64 here>'))
  • req. 3:console.log(Array(A=+prompt()).fill(1).map((x,y)=>(z=>(_=p=>s=>p?z**_(p-y)(s):s)(z)(x))(x+y)).reduce((a,b)=>a+b)%A)
  • req. 4:eval(`console.log((?*?+?)*?)`.replace(/\?/g,' +prompt()'))
  • req.5:while(1){/*insert code here*/}