Skip to content

Instantly share code, notes, and snippets.

@bilalbaraz
Created July 5, 2015 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bilalbaraz/0024d475d704e4ebc661 to your computer and use it in GitHub Desktop.
Save bilalbaraz/0024d475d704e4ebc661 to your computer and use it in GitHub Desktop.
Matematikte Özel Sayılar: Hilbert Sayıları
#!/usr/bin/env python
# -*-coding: iso-8859-9 -*-
print("### HILBERT SAYILARI ###\n");
k = int(raw_input("Ust sinir giriniz:"));
i = 1;
if k <= 0:
print("Ust sinir pozitif tam sayi olmalidir.");
else:
while i <= k:
sonuc = (i-1)%4;
if sonuc == 0:
print(i);
i = i + 1;
print("\nUst sinira kadar olan (ust sinir dahil) tum hilbert sayilarini listeledik.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment