Bitwise Interview Question

program on pattern, factorial, fibonacci, prime number.. any language