init
commit
39530e1e91
@ -0,0 +1,50 @@
|
||||
<?xml version="1.0"?>
|
||||
<anjuta>
|
||||
<plugin name="GBF Project Manager"
|
||||
url="http://anjuta.org/plugins/"
|
||||
mandatory="yes">
|
||||
<require group="Anjuta Plugin"
|
||||
attribute="Interfaces"
|
||||
value="IAnjutaProjectManager"/>
|
||||
</plugin>
|
||||
<plugin name= "Directory backend"
|
||||
mandatory="yes">
|
||||
<require group="Anjuta Plugin"
|
||||
attribute="Location"
|
||||
value="dir-project:DirProjectPlugin"/>
|
||||
<require group="Anjuta Plugin"
|
||||
attribute="Interfaces"
|
||||
value="IAnjutaProjectBackend"/>
|
||||
</plugin>
|
||||
<plugin name="Symbol Browser"
|
||||
url="http://anjuta.org/plugins/"
|
||||
mandatory="yes">
|
||||
<require group="Anjuta Plugin"
|
||||
attribute="Interfaces"
|
||||
value="IAnjutaSymbolManager"/>
|
||||
</plugin>
|
||||
<plugin name="Make Build System"
|
||||
url="http://anjuta.org/plugins/"
|
||||
mandatory="yes">
|
||||
<require group="Anjuta Plugin"
|
||||
attribute="Interfaces"
|
||||
value="IAnjutaBuildable"/>
|
||||
<require group="Build"
|
||||
attribute="Supported-Build-Types"
|
||||
value="make"/>
|
||||
</plugin>
|
||||
<plugin name="Task Manager"
|
||||
url="http://anjuta.org/plugins/"
|
||||
mandatory="no">
|
||||
<require group="Anjuta Plugin"
|
||||
attribute="Interfaces"
|
||||
value="IAnjutaTodo"/>
|
||||
</plugin>
|
||||
<plugin name="Debug Manager"
|
||||
url="http://anjuta.org/plugins/"
|
||||
mandatory="no">
|
||||
<require group="Anjuta Plugin"
|
||||
attribute="Interfaces"
|
||||
value="IAnjutaDebugManager"/>
|
||||
</plugin>
|
||||
</anjuta>
|
||||
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python3
|
||||
print ("Primzahl V0.01")
|
||||
n=int(input("Bis wohin?"))
|
||||
teiler={0,1}
|
||||
primzahlen={0,1}
|
||||
primzahlen.clear()
|
||||
for a in range(3,n+1,2):
|
||||
#print("Teste",a,"...")
|
||||
teiler.clear()
|
||||
#print(primzahlen)
|
||||
for b in primzahlen:
|
||||
#print(a,"mod",b,"=",a%b)
|
||||
if not (a%b):
|
||||
teiler.add(b)
|
||||
if not teiler:
|
||||
primzahlen.add(a)
|
||||
print(a,"ist eine Primzahl")
|
||||
else:
|
||||
print(a, "hat die Teiler",teiler)
|
||||
print("Die Primzahlen bis",n,"lauten:",sorted(primzahlen))
|
||||
Loading…
Reference in New Issue